Make call history logs the same as call event logs

Co-authored-by: Jamie Kyle <113370520+jamiebuilds-signal@users.noreply.github.com>
This commit is contained in:
automated-signal 2024-04-15 15:34:15 -05:00 committed by GitHub
parent d586a75819
commit 7bd2a84c0a
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 { export function formatCallHistory(callHistory: CallHistoryDetails): string {
const { callId, peerId, direction, status, type, mode, timestamp, ringerId } = const { callId, peerId, direction, status, type, mode, timestamp, ringerId } =
callHistory; 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( export function formatCallHistoryGroup(