Clear notifications count optimistically
This commit is contained in:
parent
92046473f8
commit
bd1a4b198e
2 changed files with 5 additions and 0 deletions
|
@ -49,6 +49,10 @@ export class MeModel {
|
|||
}
|
||||
}
|
||||
|
||||
clearNotificationCount() {
|
||||
this.notificationCount = 0
|
||||
}
|
||||
|
||||
async fetchStateUpdate() {
|
||||
const res = await this.rootStore.api.app.bsky.notification.getCount()
|
||||
runInAction(() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue