Merge pull request #3643 from bkil/bkil/fix-tooltip-of-nonmember-emojis

ReactionsRowButtonTooltip: fix null dereference if emoji owner left room
pull/21833/head
Travis Ralston 2019-11-20 18:06:37 -07:00 committed by GitHub
commit f0066ff622
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -43,7 +43,8 @@ export default class ReactionsRowButtonTooltip extends React.PureComponent {
if (room) {
const senders = [];
for (const reactionEvent of reactionEvents) {
const { name } = room.getMember(reactionEvent.getSender());
const member = room.getMember(reactionEvent.getSender());
const name = member ? member.name : reactionEvent.getSender();
senders.push(name);
}
const shortName = unicodeToShortcode(content);