When clicking on the account switcher on the bottom of the sidebar

automatically go to the last-used chat from that account

Fix #356
This commit is contained in:
Carl Schwan
2021-05-07 19:00:37 +02:00
parent ff79ff8fa7
commit 52cce4eb94
2 changed files with 40 additions and 8 deletions

View File

@@ -5,6 +5,7 @@
#include <QObject>
#include <uriresolver.h>
#include <KConfig>
class NeoChatRoom;
@@ -96,9 +97,12 @@ Q_SIGNALS:
void warning(const QString &title, const QString &message);
private:
void openRoomForActiveConnection();
NeoChatRoom *m_currentRoom;
NeoChatRoom *m_lastCurrentRoom;
QString m_arg;
KConfig m_config;
};
Q_GLOBAL_STATIC(RoomManager, roomManager)