Merge branch 'soru/fix-only-prefix-on-complex-bundles' into 'main'

fix: Only use prefix switching if we have complex bundles

See merge request famedly/fluffychat!525
This commit is contained in:
Krille Fear 2021-09-21 07:12:23 +00:00
commit 6bd332f756

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;