fix: #7629, new filter hook for room rename

This commit is contained in:
Barış Soner Uşaklı
2019-05-22 09:58:29 -04:00
parent 7a4b68e816
commit 7ba4a864fd

View File

@@ -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) {