diff --git a/src/app/organisms/room/RoomViewInput.jsx b/src/app/organisms/room/RoomViewInput.jsx index 9dcb479c..5b2b63a1 100644 --- a/src/app/organisms/room/RoomViewInput.jsx +++ b/src/app/organisms/room/RoomViewInput.jsx @@ -68,7 +68,7 @@ function RoomViewInput({ }, []); const sendIsTyping = (isT) => { - if(settings.getSendTypingNotifications()) mx.sendTyping(roomId, isT, isT ? TYPING_TIMEOUT : undefined); + if (settings.getSendTypingNotifications()) mx.sendTyping(roomId, isT, isT ? TYPING_TIMEOUT : undefined); isTyping = isT; if (isT === true) { diff --git a/src/client/action/notifications.js b/src/client/action/notifications.js index 078c3d33..e3fd9700 100644 --- a/src/client/action/notifications.js +++ b/src/client/action/notifications.js @@ -23,5 +23,5 @@ export async function markAsRead(roomId) { const latestEvent = getLatestValidEvent(); if (latestEvent === null) return; - if(settings.getSendReadReceipts()) await mx.sendReadReceipt(latestEvent); + if (settings.getSendReadReceipts()) await mx.sendReadReceipt(latestEvent); } diff --git a/src/client/state/settings.js b/src/client/state/settings.js index be3d04e0..7955ea09 100644 --- a/src/client/state/settings.js +++ b/src/client/state/settings.js @@ -187,12 +187,12 @@ class Settings extends EventEmitter { }, [cons.actions.settings.TOGGLE_TYPING_NOTIFICATIONS]: () => { this.sendTypingNotifications = !this.sendTypingNotifications; - setSettings('hideNickAvatarEvents', this.sendTypingNotifications); + setSettings('sendTypingNotifications', this.sendTypingNotifications); this.emit(cons.events.settings.SEND_TYPING_TOGGLED, this.sendTypingNotifications); }, [cons.actions.settings.TOGGLE_READ_RECEIPTS]: () => { this.sendReadReceipts = !this.sendReadReceipts; - setSettings('hideNickAvatarEvents', this.sendReadReceipts); + setSettings('sendReadReceipts', this.sendReadReceipts); this.emit(cons.events.settings.SEND_RECEIPTS_TOGGLED, this.sendReadReceipts); }, [cons.actions.settings.TOGGLE_NOTIFICATIONS]: async () => {