Remove type cast from ConversationModel#isMe

This commit is contained in:
Evan Hahn 2020-10-07 11:44:38 -05:00 committed by Josh Perez
parent 33ca9c48af
commit 4206f1c463

View file

@ -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 {