Merge pull request #6440 from jfsiebel/fix-chat-problems

Fix sending message and chat close button problem.
This commit is contained in:
Anton Georgiev 2018-12-19 10:08:39 -05:00 committed by GitHub
commit cf4c4d6e44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -155,7 +155,7 @@ export default injectIntl(withTracker(({ intl }) => {
const lastReadMessageTime = ChatService.lastReadMessageTime(chatID);
return {
chatID: Session.get('idChatOpen'),
chatID,
chatName,
title,
messages,

View File

@ -145,7 +145,7 @@ const lastReadMessageTime = (receiverID) => {
};
const sendGroupMessage = (message) => {
const chatID = Session.get('idChatOpen');
const chatID = Session.get('idChatOpen') || PUBLIC_CHAT_ID;
const isPublicChat = chatID === PUBLIC_CHAT_ID;
let chatId = PUBLIC_GROUP_CHAT_ID;