Make call history logs the same as call event logs

This commit is contained in:
Jamie Kyle 2024-04-15 12:59:14 -07:00 committed by GitHub
parent 2f6e4daaf7
commit be68c739e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -85,7 +85,8 @@ export function formatCallEvent(callEvent: CallEventDetails): string {
export function formatCallHistory(callHistory: CallHistoryDetails): string {
const { callId, peerId, direction, status, type, mode, timestamp, ringerId } =
callHistory;
return `CallHistory (${callId}, ${peerId}, ${mode}, ${status}, ${direction}, ${type}, ${mode}, ${timestamp}, ${ringerId})`;
const peerIdLog = mode === CallMode.Group ? `groupv2(${peerId})` : peerId;
return `CallHistory (${callId}, ${peerIdLog}, ${mode}, ${status}, ${direction}, ${type}, ${mode}, ${timestamp}, ${ringerId})`;
}
export function formatCallHistoryGroup(