mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 11:48:26 -06:00
DEV: Send message to DiscourseHub when dismissing (#15849)
This commit is contained in:
parent
cd460155aa
commit
e83d603bbc
@ -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");
|
||||
});
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user