]> Untitled Git - lemmy-ui.git/commitdiff
Fixing mark all as read. Fixes #72
authorDessalines <tyhou13@gmx.com>
Wed, 18 Nov 2020 16:42:41 +0000 (10:42 -0600)
committerDessalines <tyhou13@gmx.com>
Wed, 18 Nov 2020 16:42:41 +0000 (10:42 -0600)
src/shared/services/UserService.ts
src/shared/services/WebSocketService.ts

index 419490af8203f69281a73f543cbd88ff2b60ed26..72066ad4778686943d4d0fb61092ff779bc686a9 100644 (file)
@@ -49,7 +49,7 @@ export class UserService {
   }
 
   private setClaims(jwt: string) {
-    this.claims = jwt_decode(jwt) as Claims;
+    this.claims = jwt_decode(jwt);
     this.jwtSub.next(jwt);
   }
 
index 0baf9b62960f9c15a704cec6617116976c8bf5ea..53af6d1916b0bfdd4a98a4a58cc00375c5cce653 100644 (file)
@@ -348,7 +348,7 @@ export class WebSocketService {
   }
 
   public markAllAsRead() {
-    let form: MarkAllAsReadForm;
+    let form: MarkAllAsReadForm = { auth: null };
     this.setAuth(form);
     this.ws.send(this.client.markAllAsRead(form));
   }