2
0
Эх сурвалжийг харах

Updates #2733

Rather use `false` for a bool
JC Brand 3 жил өмнө
parent
commit
39e9ed8fe4

+ 1 - 1
src/headless/plugins/chat/model.js

@@ -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 };

+ 1 - 1
src/plugins/omemo/tests/omemo.js

@@ -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",