Skip to content
Permalink
Browse files
use data.roomName
  • Loading branch information
barisusakli committed Jun 11, 2018
1 parent 70ff2d9 commit c91b96c13329b06580a6507079e2aab402fa6838
Showing with 2 additions and 1 deletion.
  1. +2 −1 public/src/modules/chat.js
@@ -87,6 +87,7 @@ define('chat', [
if (err) {
return app.alertError(err.message);
}

roomData.users = roomData.users.filter(function (user) {
return user && parseInt(user.uid, 10) !== parseInt(app.user.uid, 10);
});
@@ -236,7 +237,7 @@ define('chat', [
});

Chats.addActionHandlers(chatModal.find('[component="chat/messages"]'), data.roomId);
Chats.addRenameHandler(chatModal.attr('data-roomid'), chatModal.find('[data-action="rename"]'), chatModal.attr('data-name'));
Chats.addRenameHandler(chatModal.attr('data-roomid'), chatModal.find('[data-action="rename"]'), data.roomName);
Chats.addLeaveHandler(chatModal.attr('data-roomid'), chatModal.find('[data-action="leave"]'));
Chats.addSendHandlers(chatModal.attr('data-roomid'), chatModal.find('.chat-input'), chatModal.find('[data-action="send"]'));
Chats.addMemberHandler(chatModal.attr('data-roomid'), chatModal.find('[data-action="members"]'));

0 comments on commit c91b96c

Please sign in to comment.