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