Browse Source

Fix displaying notification for foreign message

master
Eduard Kuzmenko 3 years ago
parent
commit
e5fac79b02
  1. 2
      src/lib/appManagers/appMessagesManager.ts

2
src/lib/appManagers/appMessagesManager.ts

@ -4668,7 +4668,7 @@ export class AppMessagesManager {
} }
const recentReactions = reactions?.recent_reactions; const recentReactions = reactions?.recent_reactions;
if(recentReactions?.length) { if(recentReactions?.length && message.pFlags.out) {
const recentReaction = recentReactions[recentReactions.length - 1]; const recentReaction = recentReactions[recentReactions.length - 1];
const previousReactions = message.reactions; const previousReactions = message.reactions;
const previousRecentReactions = previousReactions?.recent_reactions; const previousRecentReactions = previousReactions?.recent_reactions;

Loading…
Cancel
Save