chore: on error in message send, clear fake event (#2639)
This commit is contained in:
parent
dff75100df
commit
190d9d3fe5
2 changed files with 4 additions and 2 deletions
|
|
@ -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…
Add table
Reference in a new issue