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

Use `safeSave` to avoid intermittent test failures

due to asynchronous events.
JC Brand 7 жил өмнө
parent
commit
8fd65487c7

+ 2 - 2
src/converse-chatboxes.js

@@ -446,8 +446,8 @@
                     }
                 },
 
-                clearUnreadMsgCounter() {
-                    this.save({'num_unread': 0});
+                clearUnreadMsgCounter () {
+                    u.safeSave(this, {'num_unread': 0});
                 },
 
                 isScrolledUp () {