Remove type cast from ConversationModel#isMe
This commit is contained in:
parent
33ca9c48af
commit
4206f1c463
1 changed files with 3 additions and 2 deletions
|
@ -247,8 +247,9 @@ export class ConversationModel extends window.Backbone.Model<
|
||||||
isMe(): boolean {
|
isMe(): boolean {
|
||||||
const e164 = this.get('e164');
|
const e164 = this.get('e164');
|
||||||
const uuid = this.get('uuid');
|
const uuid = this.get('uuid');
|
||||||
return ((e164 && e164 === this.ourNumber) ||
|
return Boolean(
|
||||||
(uuid && uuid === this.ourUuid)) as boolean;
|
(e164 && e164 === this.ourNumber) || (uuid && uuid === this.ourUuid)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
isGroupV1(): boolean {
|
isGroupV1(): boolean {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue