1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-07-14 04:25:22 +02:00

smartlist: switch to conversations tab on invitation accept

- switch tab to conversations smartlist
- go to welcomeview

TODO: define UI behavior while waiting for the smartlist update

Gitlab: #284

Change-Id: I251c49e5b0b418f41d5872ef09d32db5bc940df2
This commit is contained in:
ababi 2021-02-11 12:50:31 +01:00 committed by Andreas Traczyk
parent 5f6eb2151b
commit f27f4374a2
3 changed files with 9 additions and 0 deletions

View file

@ -463,6 +463,11 @@ Rectangle {
function onNavigateToWelcomePageRequested() {
backToMainView()
}
function onInvitationAccepted() {
mainViewSidePanel.selectTab(SidePanelTabBar.Conversations)
showWelcomeView()
}
}
Component.onCompleted: {

View file

@ -664,6 +664,9 @@ MessagesAdapter::acceptInvitation(const QString& convUid)
{
const auto currentConvUid = convUid.isEmpty() ? lrcInstance_->getCurrentConvUid() : convUid;
lrcInstance_->getCurrentConversationModel()->makePermanent(currentConvUid);
if (convUid == currentConvUid_)
currentConvUid_.clear();
emit invitationAccepted();
}
void

View file

@ -91,6 +91,7 @@ signals:
void needToUpdateSmartList();
void contactBanned();
void navigateToWelcomePageRequested();
void invitationAccepted();
public slots:
void slotSendMessageContentSaved(const QString& content);