Rather use `false` for a bool
This commit is contained in:
JC Brand 2022-02-15 14:48:01 +01:00
parent 22a7e1b35f
commit 39e9ed8fe4
2 changed files with 2 additions and 2 deletions

View File

@ -460,7 +460,7 @@ const ChatBox = ModelWithContact.extend({
error_type: undefined,
is_archived: attrs.is_archived,
is_ephemeral: false,
is_error: undefined,
is_error: false,
});
} else {
return { is_archived: attrs.is_archived };

View File

@ -220,7 +220,7 @@ describe("The OMEMO module", function() {
const msg = view.model.messages.at(0);
expect(msg.get('is_ephemeral')).toBe(false)
expect(msg.getDisplayName()).toBe('Mercutio');
expect(msg.get('is_error')).toBe(undefined);
expect(msg.get('is_error')).toBe(false);
}));
it("will create a new device based on a received carbon message",