mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-01 16:51:13 +00:00
Fixing mark all as read. Fixes #72
This commit is contained in:
parent
3e87e61c0c
commit
e86b870bd5
2 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@ export class UserService {
|
||||||
}
|
}
|
||||||
|
|
||||||
private setClaims(jwt: string) {
|
private setClaims(jwt: string) {
|
||||||
this.claims = jwt_decode(jwt) as Claims;
|
this.claims = jwt_decode(jwt);
|
||||||
this.jwtSub.next(jwt);
|
this.jwtSub.next(jwt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -348,7 +348,7 @@ export class WebSocketService {
|
||||||
}
|
}
|
||||||
|
|
||||||
public markAllAsRead() {
|
public markAllAsRead() {
|
||||||
let form: MarkAllAsReadForm;
|
let form: MarkAllAsReadForm = { auth: null };
|
||||||
this.setAuth(form);
|
this.setAuth(form);
|
||||||
this.ws.send(this.client.markAllAsRead(form));
|
this.ws.send(this.client.markAllAsRead(form));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue