fix: #7629, new filter hook for room rename

v1.18.x
Barış Soner Uşaklı 6 years ago
parent 7a4b68e816
commit 7ba4a864fd

@ -250,6 +250,13 @@ module.exports = function (Messaging) {
}
async.waterfall([
function (next) {
plugins.fireHook('filter:chat.renameRoom', {
uid: uid,
roomId: roomId,
newName: newName,
}, next);
},
function (result, next) {
Messaging.isRoomOwner(uid, roomId, next);
},
function (isOwner, next) {

Loading…
Cancel
Save