Fix displaying notification for foreign message

This commit is contained in:
Eduard Kuzmenko 2022-02-22 15:04:41 +02:00
parent 778dae6470
commit e5fac79b02

View File

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