Commit 9f36187a authored by Christopher Davis's avatar Christopher Davis

Notify for direct messages

parent 0c647ad3
......@@ -1631,7 +1631,10 @@ impl AppOp {
let mut prev = None;
for msg in msgs.iter() {
let mut should_notify = msg.body.contains(&self.username.clone()?);
let mut should_notify = msg.body.contains(&self.username.clone()?) || {
let r = self.rooms.get(&msg.room).unwrap();
r.direct
};
// not notifying the initial messages
should_notify = should_notify && !init;
// not notifying my own messages
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment