fix(chat): only hide mentions list layer if it is visible in removeMentionsList (#787)
This commit is contained in:
parent
48f3b5316c
commit
adda09d1ca
1 changed files with 4 additions and 1 deletions
|
|
@ -613,7 +613,10 @@ func (mi *messageInput) addMentionUser(user *discord.User) {
|
|||
}
|
||||
|
||||
func (mi *messageInput) removeMentionsList() {
|
||||
mi.chat.HideLayer(mentionsListLayerName)
|
||||
// Make sure that the layer is visible before hiding it to avoid a refocus in the parent.
|
||||
if mi.chat.GetVisible(mentionsListLayerName) {
|
||||
mi.chat.HideLayer(mentionsListLayerName)
|
||||
}
|
||||
}
|
||||
|
||||
func (mi *messageInput) stopTabCompletion(emit func(tview.Command)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue