fix: make sure context menu receives correct channel index

This was missing in one of our previous PRs and causes the
channel context menu to not function properly e.g. when deleting
chats, it currently always deletes the first chat in the channel list
instead of the active channel.
This commit is contained in:
Pascal Precht 2021-02-08 13:10:40 +01:00 committed by Iuri Matias
parent e0a6f48b8e
commit e61d91dd51
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ Rectangle {
if (isPrivateGroupChat) {
menu.popup(moreActionsBtn.x, moreActionsBtn.height)
} else {
menu.openMenu(chatsModel.activeChannel)
menu.openMenu(chatsModel.activeChannel, chatsModel.getActiveChannelIdx())
}
}
cursorShape: Qt.PointingHandCursor