mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
feat: Skips notifications for messages from history (the messages on join).
This commit is contained in:
@@ -320,7 +320,10 @@ function _handleReceivedMessage({ dispatch, getState },
|
||||
const hasRead = participant.local || isChatOpen;
|
||||
const timestampToDate = timestamp ? new Date(timestamp) : new Date();
|
||||
const millisecondsTimestamp = timestampToDate.getTime();
|
||||
const shouldShowNotification = userSelectedNotifications['notify.chatMessages'] && !hasRead && !isReaction;
|
||||
|
||||
// skip message notifications on join (the messages having timestamp - coming from the history)
|
||||
const shouldShowNotification = userSelectedNotifications['notify.chatMessages']
|
||||
&& !hasRead && !isReaction && !timestamp;
|
||||
|
||||
dispatch(addMessage({
|
||||
displayName,
|
||||
|
||||
Reference in New Issue
Block a user