chore: on error in message send, clear fake event (#2639)

This commit is contained in:
ggurdin 2025-05-02 16:57:45 -04:00 committed by GitHub
parent dff75100df
commit 190d9d3fe5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View file

@ -887,6 +887,7 @@ class ChatController extends State<ChatPageWithRoom>
}
},
).catchError((err, s) {
clearFakeEvent();
if (err is EventTooLarge) {
showAdaptiveDialog(
context: context,

View file

@ -496,8 +496,9 @@ class InputBar extends StatelessWidget {
builder: (context, _, focusNode) {
final textField = TextField(
enableSuggestions: enableAutocorrect,
readOnly:
controller != null && controller!.choreographer.isRunningIT,
readOnly: controller != null &&
(controller!.choreographer.isRunningIT ||
controller!.choreographer.chatController.obscureText),
autocorrect: enableAutocorrect,
controller: (controller
?.choreographer.chatController.obscureText) ??