From 1397107dff0c86883b1f95f241eff554a3afe9ba Mon Sep 17 00:00:00 2001
From: Brice-W <brice@loki.network>
Date: Fri, 16 Jul 2021 13:48:08 +1000
Subject: [PATCH] fix issues

---
 ts/models/conversation.ts | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/ts/models/conversation.ts b/ts/models/conversation.ts
index 0d035be28..1df311e82 100644
--- a/ts/models/conversation.ts
+++ b/ts/models/conversation.ts
@@ -191,15 +191,16 @@ export class ConversationModel extends Backbone.Model<ConversationAttributes> {
     this.throttledNotify = _.debounce(this.notify, 500, { maxWait: 1000 });
     //start right away the function is called, and wait 1sec before calling it again
     //this.markRead = _.debounce(this.markReadBouncy, 1000, { leading: true });
-    const markReadBouncy = _.debounce(this.markReadBouncy, 1000, { leading: true })
+    const markReadBouncy = _.debounce(this.markReadBouncy, 1000, { leading: true });
     this.markRead = (newestUnreadDate: number) => {
       const lastReadTimestamp = this.get('lastReadTimestamp');
-      if (newestUnreadDate > lastReadTimestamp)
-      this.set({
-        lastReadTimestamp: newestUnreadDate,
-      });
-      markReadBouncy(newestUnreadDate);
-    }
+      if (newestUnreadDate > lastReadTimestamp) {
+        this.set({
+          lastReadTimestamp: newestUnreadDate,
+        });
+      }
+      void markReadBouncy(newestUnreadDate);
+    };
     // Listening for out-of-band data updates
 
     this.typingRefreshTimer = null;
@@ -913,7 +914,6 @@ export class ConversationModel extends Backbone.Model<ConversationAttributes> {
   }
 
   public async markReadBouncy(newestUnreadDate: number, providedOptions: any = {}) {
-
     const lastReadTimestamp = this.get('lastReadTimestamp');
     if (newestUnreadDate < lastReadTimestamp) {
       return;