fix(group-chats): Fix wrong group name in a subsequent edit attempt

Root cause: the name used as input for the naming edit field was sourced
from the active group entry which is updated only when switching
the active group.

fixes #4910
This commit is contained in:
Stefan Dunca 2022-03-04 14:50:06 +01:00 committed by Stefan Dunca
parent 5a6912d18e
commit 72e67159fc
1 changed files with 1 additions and 1 deletions

View File

@ -296,7 +296,7 @@ StatusModal {
RenameGroupPopup {
id: renameGroupPopup
activeChannelName: popup.chatSectionModule.activeItem.name
activeChannelName: popup.chatDetails ? popup.chatDetails.name : ""
onDoRename: {
popup.chatSectionModule.renameGroupChat(popup.chatSectionModule.activeItem.id, groupName)
popup.header.title = groupName