equal
deleted
inserted
replaced
37 return false |
37 return false |
38 end |
38 end |
39 |
39 |
40 -- Send a single notification for a room, updating data structures as needed |
40 -- Send a single notification for a room, updating data structures as needed |
41 local function send_single_notification(user_bare_jid, room_jid, mention_stanza) |
41 local function send_single_notification(user_bare_jid, room_jid, mention_stanza) |
42 local notification = st.message({ to = user_bare_jid, from = module.host }) |
42 local notification = st.message({ to = user_bare_jid, from = room_jid }) |
43 :tag("mentions", { xmlns = mmn_xmlns }) |
43 :tag("mentions", { xmlns = mmn_xmlns }) |
44 :tag("forwarded", {xmlns = forwarded_xmlns}) |
44 :tag("forwarded", {xmlns = forwarded_xmlns}) |
45 :tag("delay", {xmlns = deplay_xmlns, stamp = datetime.datetime()}):up() |
45 :tag("delay", {xmlns = deplay_xmlns, stamp = datetime.datetime()}):up() |
46 :add_child(mention_stanza) |
46 :add_child(mention_stanza) |
47 :reset(); |
47 :reset(); |