Skip to content

Commit dd32cf0

Browse files
committed
Don't send a notification when an emoji reaction is placed.
1 parent 8df94e5 commit dd32cf0

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

ts/models/message.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,12 +1245,6 @@ export class MessageModel extends Backbone.Model<MessageAttributes> {
12451245
return window.i18n('answeredACall', [displayName]);
12461246
}
12471247
}
1248-
if (this.get('reaction')) {
1249-
const reaction = this.get('reaction');
1250-
if (reaction && reaction.emoji && reaction.emoji !== '') {
1251-
return window.i18n('reactionNotification', [reaction.emoji]);
1252-
}
1253-
}
12541248
return this.get('body');
12551249
}
12561250
}

ts/util/notifications.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ function update(forceRefresh = false) {
175175

176176
const lastNotification = last(currentNotifications);
177177

178-
if (!lastNotification) {
178+
if (!lastNotification || lastNotification.message === '') {
179179
return;
180180
}
181181

0 commit comments

Comments
 (0)