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,
|
getConversationSelector,
|
||||||
getMessagesByConversation,
|
getMessagesByConversation,
|
||||||
} from '../state/selectors/conversations';
|
} from '../state/selectors/conversations';
|
||||||
|
import { getActiveCallState } from '../state/selectors/calling';
|
||||||
import { ConversationDetailsMembershipList } from '../components/conversation/conversation-details/ConversationDetailsMembershipList';
|
import { ConversationDetailsMembershipList } from '../components/conversation/conversation-details/ConversationDetailsMembershipList';
|
||||||
import { showSafetyNumberChangeDialog } from '../shims/showSafetyNumberChangeDialog';
|
import { showSafetyNumberChangeDialog } from '../shims/showSafetyNumberChangeDialog';
|
||||||
import type {
|
import type {
|
||||||
|
@ -472,6 +473,11 @@ export class ConversationView extends window.Backbone.View<ConversationModel> {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const activeCall = getActiveCallState(window.reduxStore.getState());
|
||||||
|
if (activeCall && !activeCall.pip) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const message = await getMessageById(messageId);
|
const message = await getMessageById(messageId);
|
||||||
if (!message) {
|
if (!message) {
|
||||||
throw new Error(`markMessageRead: failed to load message ${messageId}`);
|
throw new Error(`markMessageRead: failed to load message ${messageId}`);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue