notifications added to events.notify

This commit is contained in:
ntr
2019-11-02 15:52:50 +11:00
parent 18f2ab5f7a
commit 76fb591844
5 changed files with 22 additions and 5 deletions
+1
View File
@@ -65,6 +65,7 @@ pub enum RpcMessage {
QueueRequested(()),
QueueJoined(()),
QueueCancelled(()),
QueueFound(()),
InviteRequested(()),
Invite(String),
+4
View File
@@ -112,6 +112,10 @@ impl Warden {
pair.0.tx.send(msg.clone())?;
pair.1.tx.send(msg)?;
// send msgs for browser notifications
pair.0.tx.send(RpcMessage::QueueFound(()))?;
pair.1.tx.send(RpcMessage::QueueFound(()))?;
Ok(())
}
}