DEV: Send message to DiscourseHub when dismissing (#15849)

This commit is contained in:
Penar Musaraj 2022-02-07 20:15:26 +01:00 committed by GitHub
parent cd460155aa
commit e83d603bbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,7 @@ import { Promise } from "rsvp";
import Session from "discourse/models/session";
import { createWidget } from "discourse/widgets/widget";
import { h } from "virtual-dom";
import { postRNWebviewMessage } from "discourse/lib/utilities";
/**
* This tries to enforce a consistent flow of fetching, caching, refreshing,
@ -75,6 +76,7 @@ export default createWidget("quick-access-panel", {
markRead() {
return this.markReadRequest().then(() => {
this.refreshNotifications(this.state);
postRNWebviewMessage("markRead", "1");
});
},