mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-26 04:16:44 +00:00
[Glitch] Fix notifications re-rendering spuriously in web UI
Port f2a92c2d22 to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
|
||||
import { isEqual } from 'lodash';
|
||||
|
||||
import AlternateEmailIcon from '@/material-icons/400-24px/alternate_email.svg?react';
|
||||
import ReplyIcon from '@/material-icons/400-24px/reply-fill.svg?react';
|
||||
import { me } from 'flavours/glitch/initial_state';
|
||||
@@ -47,7 +49,7 @@ export const NotificationMention: React.FC<{
|
||||
status.get('visibility') === 'direct',
|
||||
status.get('in_reply_to_account_id') === me,
|
||||
] as const;
|
||||
});
|
||||
}, isEqual);
|
||||
|
||||
let labelRenderer = mentionLabelRenderer;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user