add if(mounted) check
This commit is contained in:
@@ -967,6 +967,9 @@ class MessageInputState extends State<MessageInput> {
|
||||
_debounce = Timer(
|
||||
const Duration(milliseconds: 350),
|
||||
() {
|
||||
if (!mounted) {
|
||||
return;
|
||||
}
|
||||
final s = textEditingController.text;
|
||||
StreamChannel.of(context).channel.keyStroke(
|
||||
widget.parentMessage?.id,
|
||||
|
||||
Reference in New Issue
Block a user