Conversation.idForLogging: Show groupId or uuid/e164 instead of id

This commit is contained in:
Scott Nonnenberg 2020-07-10 11:41:00 -07:00
parent fcf5ebe9da
commit 9214aee3ec

View file

@ -65,10 +65,13 @@
idForLogging() { idForLogging() {
if (this.isPrivate()) { if (this.isPrivate()) {
return this.id; const uuid = this.get('uuid');
const e164 = this.get('e164');
return `${uuid || e164} (${this.id})`;
} }
return `group(${this.id})`; const groupId = this.get('groupId');
return `group(${groupId})`;
}, },
handleMessageError(message, errors) { handleMessageError(message, errors) {