major: change message logic and breaks oldticket

This commit is contained in:
canove
2020-07-30 14:09:05 -03:00
parent ee6c742a8d
commit 56afe86805
8 changed files with 106 additions and 75 deletions

View File

@@ -259,7 +259,7 @@ const TicketsList = () => {
});
socket.on("appMessage", data => {
if (data.action === "create") {
if (data.action === "create" && !data.message.fromMe) {
updateUnreadMessagesCount(data);
if (
(ticketId &&