Merge pull request #6440 from jfsiebel/fix-chat-problems
Fix sending message and chat close button problem.
This commit is contained in:
commit
cf4c4d6e44
@ -155,7 +155,7 @@ export default injectIntl(withTracker(({ intl }) => {
|
||||
const lastReadMessageTime = ChatService.lastReadMessageTime(chatID);
|
||||
|
||||
return {
|
||||
chatID: Session.get('idChatOpen'),
|
||||
chatID,
|
||||
chatName,
|
||||
title,
|
||||
messages,
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user