parent
2316c6b1fe
commit
e6721b1fa8
@ -39,7 +39,9 @@ function get_muc_terms(room)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function set_muc_terms(room, terms)
|
function set_muc_terms(room, terms)
|
||||||
terms = terms or nil;
|
if terms == "" then
|
||||||
|
terms = nil;
|
||||||
|
end
|
||||||
|
|
||||||
if get_muc_terms(room) == terms then return false; end
|
if get_muc_terms(room) == terms then return false; end
|
||||||
|
|
||||||
|
@ -356,7 +356,7 @@ class RoomChannel {
|
|||||||
// This can be done without waiting for the API call to finish, but we don't want to send thousands of
|
// This can be done without waiting for the API call to finish, but we don't want to send thousands of
|
||||||
// API calls at the same time. So storing data in a map, and we well launch it sequentially at the end
|
// API calls at the same time. So storing data in a map, and we well launch it sequentially at the end
|
||||||
prosodyRoomUpdates.set(roomJID, {
|
prosodyRoomUpdates.set(roomJID, {
|
||||||
livechat_muc_terms: channelConfigurationOptions.terms
|
livechat_muc_terms: channelConfigurationOptions.terms ?? '' // must pass a string, else wont update
|
||||||
})
|
})
|
||||||
|
|
||||||
this.roomConfToUpdate.delete(roomJID)
|
this.roomConfToUpdate.delete(roomJID)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user