Storage Service Write: Tighten up validation

This commit is contained in:
Josh Perez
2020-09-10 18:37:20 -04:00
committed by GitHub
parent 9fae795e8f
commit c25759ca3a
3 changed files with 111 additions and 24 deletions

View File

@@ -86,6 +86,13 @@
return `group(${groupId})`;
},
debugID() {
const uuid = this.get('uuid');
const e164 = this.get('e164');
const groupId = this.get('groupId');
return `group(${groupId}), sender(${uuid || e164}), id(${this.id})`;
},
// This is one of the few times that we want to collapse our uuid/e164 pair down into
// just one bit of data. If we have a UUID, we'll send using it.
getSendTarget() {