Allow disabling sending of typing notifications

This commit is contained in:
Tobias Fella
2022-04-21 20:47:59 +02:00
parent abed37518d
commit 5595d8f896
3 changed files with 13 additions and 1 deletions

View File

@@ -229,7 +229,7 @@ ToolBar {
}
onTextChanged: {
if (!repeatTimer.running) {
if (!repeatTimer.running && Config.typingNotifications) {
currentRoom.sendTypingNotification(true)
}
repeatTimer.start()

View File

@@ -110,6 +110,15 @@ Kirigami.ScrollablePage {
Config.save()
}
}
QQC2.CheckBox {
text: i18n("Send Typing Notifications")
checked: Config.typingNotifications
enabled: !Config.isTypingNotificationsImmutable
onToggled: {
Config.typingNotifications = checked
Config.save()
}
}
}
}
}

View File

@@ -51,6 +51,9 @@
<entry name="RoomDrawerWidth" type="int">
<default>-1</default>
</entry>
<entry name="TypingNotifications" type="bool">
<default>true</default>
</entry>
</group>
<group name="Timeline">
<entry name="ShowAvatarInTimeline" type="bool">