File tree 2 files changed +7
-6
lines changed
2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 35
35
- #1296 : ` embedded ` view mode shows ` chatbox-navback ` arrow in header
36
36
- #1330 : Missing room name in MUC invitation popup
37
37
- #1445 : Participants list uses big font in embedded mode
38
+ - #1455 : Avatar in controlbox status-view not updated
38
39
- #1465 : When highlighting a roster contact, they're incorrectly shown as online
39
40
- #1495 : Mentions should always include a URI attribute
40
41
- #1502 : Fatal error when using prebind
Original file line number Diff line number Diff line change @@ -19,20 +19,20 @@ const AvatarMixin = {
19
19
20
20
renderAvatar ( el ) {
21
21
el = el || this . el ;
22
- const canvas_el = el . querySelector ( 'canvas' ) ;
23
- if ( _ . isNull ( canvas_el ) ) {
22
+ const avatar_el = el . querySelector ( 'canvas.avatar, svg.avatar ' ) ;
23
+ if ( _ . isNull ( avatar_el ) ) {
24
24
return ;
25
25
}
26
26
if ( this . model . vcard ) {
27
27
const data = {
28
- 'classes' : canvas_el . getAttribute ( 'class' ) ,
29
- 'width' : canvas_el . width ,
30
- 'height' : canvas_el . height ,
28
+ 'classes' : avatar_el . getAttribute ( 'class' ) ,
29
+ 'width' : avatar_el . getAttribute ( ' width' ) ,
30
+ 'height' : avatar_el . getAttribute ( ' height' ) ,
31
31
}
32
32
const image_type = this . model . vcard . get ( 'image_type' ) ,
33
33
image = this . model . vcard . get ( 'image' ) ;
34
34
data [ 'image' ] = "data:" + image_type + ";base64," + image ;
35
- canvas_el . outerHTML = tpl_avatar ( data ) ;
35
+ avatar_el . outerHTML = tpl_avatar ( data ) ;
36
36
}
37
37
} ,
38
38
} ;
You can’t perform that action at this time.
0 commit comments