Don't mark messages read if a call is fullscreen
This commit is contained in:
parent
68537902fb
commit
2c848d85bc
1 changed files with 6 additions and 0 deletions
|
@ -54,6 +54,7 @@ import {
|
|||
getConversationSelector,
|
||||
getMessagesByConversation,
|
||||
} from '../state/selectors/conversations';
|
||||
import { getActiveCallState } from '../state/selectors/calling';
|
||||
import { ConversationDetailsMembershipList } from '../components/conversation/conversation-details/ConversationDetailsMembershipList';
|
||||
import { showSafetyNumberChangeDialog } from '../shims/showSafetyNumberChangeDialog';
|
||||
import type {
|
||||
|
@ -472,6 +473,11 @@ export class ConversationView extends window.Backbone.View<ConversationModel> {
|
|||
return;
|
||||
}
|
||||
|
||||
const activeCall = getActiveCallState(window.reduxStore.getState());
|
||||
if (activeCall && !activeCall.pip) {
|
||||
return;
|
||||
}
|
||||
|
||||
const message = await getMessageById(messageId);
|
||||
if (!message) {
|
||||
throw new Error(`markMessageRead: failed to load message ${messageId}`);
|
||||
|
|
Loading…
Add table
Reference in a new issue