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 {
|
||||
const e164 = this.get('e164');
|
||||
const uuid = this.get('uuid');
|
||||
return ((e164 && e164 === this.ourNumber) ||
|
||||
(uuid && uuid === this.ourUuid)) as boolean;
|
||||
return Boolean(
|
||||
(e164 && e164 === this.ourNumber) || (uuid && uuid === this.ourUuid)
|
||||
);
|
||||
}
|
||||
|
||||
isGroupV1(): boolean {
|
||||
|
|
Loading…
Reference in a new issue