diff options
| author | Shpuld Shpuldson <shp@cock.li> | 2020-10-27 10:03:04 +0200 |
|---|---|---|
| committer | Shpuld Shpuldson <shp@cock.li> | 2020-10-27 10:03:04 +0200 |
| commit | 2c441c79225e1f4412eee4300820f57c4ef5f4fc (patch) | |
| tree | 0922b479925b12a3aa426a7ea8bebcc804b64ddc /src/services/chat_utils | |
| parent | e2c4816feb700d25bbeaebee6c5a67ae5f478e90 (diff) | |
fix back button size, fix missing chat notifications being marked as read too eagerly, fix promiseinterval erroring when not getting a promise
Diffstat (limited to 'src/services/chat_utils')
| -rw-r--r-- | src/services/chat_utils/chat_utils.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/services/chat_utils/chat_utils.js b/src/services/chat_utils/chat_utils.js index 583438f7..86fe1af9 100644 --- a/src/services/chat_utils/chat_utils.js +++ b/src/services/chat_utils/chat_utils.js @@ -3,7 +3,7 @@ import { showDesktopNotification } from '../desktop_notification_utils/desktop_n export const maybeShowChatNotification = (store, chat) => { if (!chat.lastMessage) return if (store.rootState.chats.currentChatId === chat.id && !document.hidden) return - if (store.rootState.users.currentUser.id === chat.lastMessage.account.id) return + if (store.rootState.users.currentUser.id === chat.lastMessage.account_id) return const opts = { tag: chat.lastMessage.id, |
