Peer Settings button goes to Message Pane if already in Settings

Fixes #399
This commit is contained in:
Sarah Jamie Lewis 2020-11-26 14:08:16 -08:00
parent 1eb391ecc1
commit ef58f002b3
1 changed files with 8 additions and 2 deletions

View File

@ -129,12 +129,18 @@ ApplicationWindow {
onBack: { backFn() }
onRightMenu: {
// If a group is selected....
if (gcd.selectedConversation.length == 32) {
theStack.pane = theStack.groupProfilePane
gcd.requestGroupSettings(gcd.selectedConversation)
} else {
theStack.pane = theStack.userProfilePane
gcd.requestPeerSettings(gcd.selectedConversation)
// if a peer is selected..
if (theStack.pane == theStack.userProfilePane) {
theStack.pane = theStack.messagePane
} else {
theStack.pane = theStack.userProfilePane
gcd.requestPeerSettings(gcd.selectedConversation)
}
}
}
}