fix: Only use prefix switching if we have complex bundles

This commit is contained in:
Sorunome 2021-09-21 09:08:18 +02:00
parent 396a433cae
commit 7867af858d
No known key found for this signature in database
GPG Key ID: B19471D07FC9BE9C
1 changed files with 13 additions and 11 deletions

View File

@ -739,6 +739,7 @@ class ChatController extends State<Chat> {
}
void onInputBarChanged(String text) {
if (text.endsWith(' ') && matrix.hasComplexBundles) {
final clients = currentRoomBundle;
for (final client in clients) {
final prefix = client.sendPrefix;
@ -752,6 +753,7 @@ class ChatController extends State<Chat> {
return;
}
}
}
typingCoolDown?.cancel();
typingCoolDown = Timer(Duration(seconds: 2), () {
typingCoolDown = null;