Conversation.idForLogging: Show groupId or uuid/e164 instead of id
This commit is contained in:
parent
fcf5ebe9da
commit
9214aee3ec
1 changed files with 5 additions and 2 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue