Make call history logs the same as call event logs
This commit is contained in:
parent
2f6e4daaf7
commit
be68c739e5
1 changed files with 2 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Reference in a new issue