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

pull/2245/head
ggurdin 7 months ago committed by GitHub
parent dff75100df
commit 190d9d3fe5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

@ -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) ??

Loading…
Cancel
Save