fix show overlay

This commit is contained in:
Salvatore Giordano
2020-11-19 11:50:41 +01:00
parent 6a8e76dc18
commit 199831a7ec
+4 -6
View File
@@ -934,12 +934,10 @@ class MessageInputState extends State<MessageInput> {
if (visible) {
_onChange();
} else {
if (_commandsOverlay != null) {
_commandsOverlay.remove();
}
if (_mentionsOverlay != null) {
_mentionsOverlay.remove();
}
_commandsOverlay?.remove();
_commandsOverlay = null;
_mentionsOverlay?.remove();
_mentionsOverlay = null;
}
});
}