equal
deleted
inserted
replaced
28 local rooms = rawget(mod_muc, "rooms"); |
28 local rooms = rawget(mod_muc, "rooms"); |
29 local each_room = rawget(mod_muc, "each_room") or function() return it.values(rooms); end; |
29 local each_room = rawget(mod_muc, "each_room") or function() return it.values(rooms); end; |
30 local new_muc = not rooms; |
30 local new_muc = not rooms; |
31 if new_muc then |
31 if new_muc then |
32 rooms = module:shared"muc/rooms"; |
32 rooms = module:shared"muc/rooms"; |
|
33 else |
|
34 -- COMPAT: We don't (currently?) support injecting stanza-id |
|
35 -- on Prosody 0.10 and prior, which is required by mam:2 |
|
36 xmlns_mam = "urn:xmpp:mam:1"; |
33 end |
37 end |
34 local get_room_from_jid = rawget(mod_muc, "get_room_from_jid") or |
38 local get_room_from_jid = rawget(mod_muc, "get_room_from_jid") or |
35 function (jid) |
39 function (jid) |
36 return rooms[jid]; |
40 return rooms[jid]; |
37 end |
41 end |