From: Dessalines Date: Wed, 18 Nov 2020 16:42:41 +0000 (-0600) Subject: Fixing mark all as read. Fixes #72 X-Git-Url: http://these/git/%22https:/nerdica.net/README.ja.md?a=commitdiff_plain;h=e86b870bd5b4c13e718b44421b56c8aa562a1270;p=lemmy-ui.git Fixing mark all as read. Fixes #72 --- diff --git a/src/shared/services/UserService.ts b/src/shared/services/UserService.ts index 419490a..72066ad 100644 --- a/src/shared/services/UserService.ts +++ b/src/shared/services/UserService.ts @@ -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); } diff --git a/src/shared/services/WebSocketService.ts b/src/shared/services/WebSocketService.ts index 0baf9b6..53af6d1 100644 --- a/src/shared/services/WebSocketService.ts +++ b/src/shared/services/WebSocketService.ts @@ -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)); }