Add logs to group call peeks after call ended

This commit is contained in:
Jamie Kyle 2023-08-28 09:30:47 -07:00 committed by GitHub
parent 1f7386d7cf
commit dc9caa0a99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 31 additions and 6 deletions

View file

@ -190,6 +190,7 @@ import {
getCallsHistoryForRedux,
loadCallsHistory,
} from './services/callHistoryLoader';
import { getCallIdFromEra } from './util/callDisposition';
export function isOverHourIntoPast(timestamp: number): boolean {
return isNumber(timestamp) && isOlderThan(timestamp, HOUR);
@ -2913,6 +2914,13 @@ export async function startApp(): Promise<void> {
): boolean {
if (message.groupCallUpdate) {
if (message.groupV2 && messageDescriptor.type === Message.GROUP) {
log.info(
'handleGroupCallUpdateMessage',
message.timestamp,
message.groupCallUpdate?.eraId != null
? getCallIdFromEra(message.groupCallUpdate.eraId)
: null
);
window.reduxActions.calling.peekNotConnectedGroupCall({
conversationId: messageDescriptor.id,
});