Compare commits
1 Commits
master
...
work/tobia
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
43e5adee7e |
@@ -15,6 +15,7 @@
|
|||||||
#include "general_logging.h"
|
#include "general_logging.h"
|
||||||
|
|
||||||
using namespace Qt::StringLiterals;
|
using namespace Qt::StringLiterals;
|
||||||
|
using namespace Quotient;
|
||||||
|
|
||||||
AccountManager::AccountManager(bool testMode, QObject *parent)
|
AccountManager::AccountManager(bool testMode, QObject *parent)
|
||||||
: QObject(parent)
|
: QObject(parent)
|
||||||
@@ -39,7 +40,7 @@ Quotient::AccountRegistry *AccountManager::accounts()
|
|||||||
|
|
||||||
void AccountManager::loadAccountsFromCache()
|
void AccountManager::loadAccountsFromCache()
|
||||||
{
|
{
|
||||||
for (const auto &accountId : Quotient::SettingsGroup("Accounts"_L1).childGroups()) {
|
for (const auto &accountId : AccountSettingsGroup().childGroups()) {
|
||||||
Quotient::AccountSettings account{accountId};
|
Quotient::AccountSettings account{accountId};
|
||||||
m_accountsLoading += accountId;
|
m_accountsLoading += accountId;
|
||||||
Q_EMIT accountsLoadingChanged();
|
Q_EMIT accountsLoadingChanged();
|
||||||
|
|||||||
@@ -190,7 +190,7 @@ void NeoChatConnection::setKeywordPushRuleDefault(PushRuleAction::Action default
|
|||||||
|
|
||||||
void NeoChatConnection::logout(bool serverSideLogout)
|
void NeoChatConnection::logout(bool serverSideLogout)
|
||||||
{
|
{
|
||||||
SettingsGroup(u"Accounts"_s).remove(userId());
|
AccountSettingsGroup().remove(userId());
|
||||||
|
|
||||||
QKeychain::DeletePasswordJob job(qAppName());
|
QKeychain::DeletePasswordJob job(qAppName());
|
||||||
job.setAutoDelete(true);
|
job.setAutoDelete(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user