Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit e9a53a8

Browse files
authored
Merge pull request #671 from matrix-org/dbkr/fix_read_receipt_unhide
Fix expanding/unexapnding read receipts
2 parents eebc753 + b561b71 commit e9a53a8

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

src/components/views/avatars/BaseAvatar.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -159,13 +159,14 @@ module.exports = React.createClass({
159159
}
160160
if (onClick != null) {
161161
return (
162-
<AccessibleButton className="mx_BaseAvatar" onClick={onClick}>
163-
<img className="mx_BaseAvatar_image" src={imageUrl}
164-
onError={this.onError}
165-
width={width} height={height}
166-
title={title} alt=""
167-
{...otherProps} />
168-
</AccessibleButton>
162+
<AccessibleButton className="mx_BaseAvatar mx_BaseAvatar_image"
163+
element='img'
164+
src={imageUrl}
165+
onClick={onClick}
166+
onError={this.onError}
167+
width={width} height={height}
168+
title={title} alt=""
169+
{...otherProps} />
169170
);
170171
} else {
171172
return (

src/components/views/rooms/ReadReceiptMarker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,9 @@ module.exports = React.createClass({
192192
width={14} height={14} resizeMethod="crop"
193193
style={style}
194194
title={title}
195+
onClick={this.props.onClick}
195196
/>
196197
</Velociraptor>
197198
);
198-
/* onClick={this.props.onClick} */
199199
},
200200
});

0 commit comments

Comments
 (0)