Allow disabling sending of typing notifications
This commit is contained in:
@@ -229,7 +229,7 @@ ToolBar {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onTextChanged: {
|
onTextChanged: {
|
||||||
if (!repeatTimer.running) {
|
if (!repeatTimer.running && Config.typingNotifications) {
|
||||||
currentRoom.sendTypingNotification(true)
|
currentRoom.sendTypingNotification(true)
|
||||||
}
|
}
|
||||||
repeatTimer.start()
|
repeatTimer.start()
|
||||||
|
|||||||
@@ -110,6 +110,15 @@ Kirigami.ScrollablePage {
|
|||||||
Config.save()
|
Config.save()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
QQC2.CheckBox {
|
||||||
|
text: i18n("Send Typing Notifications")
|
||||||
|
checked: Config.typingNotifications
|
||||||
|
enabled: !Config.isTypingNotificationsImmutable
|
||||||
|
onToggled: {
|
||||||
|
Config.typingNotifications = checked
|
||||||
|
Config.save()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -51,6 +51,9 @@
|
|||||||
<entry name="RoomDrawerWidth" type="int">
|
<entry name="RoomDrawerWidth" type="int">
|
||||||
<default>-1</default>
|
<default>-1</default>
|
||||||
</entry>
|
</entry>
|
||||||
|
<entry name="TypingNotifications" type="bool">
|
||||||
|
<default>true</default>
|
||||||
|
</entry>
|
||||||
</group>
|
</group>
|
||||||
<group name="Timeline">
|
<group name="Timeline">
|
||||||
<entry name="ShowAvatarInTimeline" type="bool">
|
<entry name="ShowAvatarInTimeline" type="bool">
|
||||||
|
|||||||
Reference in New Issue
Block a user