diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-08-09 23:02:17 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-08-09 23:02:17 +0900 |
commit | 01570f70926c716441cdb62928231a35af72ebc3 (patch) | |
tree | 832bbdc4c75247fb93ce18e76eed02c6674bf55c /lib/connection.cpp | |
parent | b0f259c3aa4ca619a6998184d16f9ab2daf5b5f4 (diff) | |
parent | 38f063e75757e97bfe1fda9655ab460454ba99db (diff) | |
download | libquotient-01570f70926c716441cdb62928231a35af72ebc3.tar.gz libquotient-01570f70926c716441cdb62928231a35af72ebc3.zip |
Merge branch 'renaming'
Diffstat (limited to 'lib/connection.cpp')
-rw-r--r-- | lib/connection.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/connection.cpp b/lib/connection.cpp index 6cd6ad0b..22db8e3d 100644 --- a/lib/connection.cpp +++ b/lib/connection.cpp @@ -53,7 +53,7 @@ #include <QtCore/QStringBuilder> #include <QtNetwork/QDnsLookup> -using namespace QMatrixClient; +using namespace Quotient; // This is very much Qt-specific; STL iterators don't have key() and value() template <typename HashT, typename Pred> @@ -95,8 +95,7 @@ public: DirectChatsMap directChats; DirectChatUsersMap directChatUsers; // The below two variables track local changes between sync completions. - // See also: - // https://github.com/QMatrixClient/libqmatrixclient/wiki/Handling-direct-chat-events + // See https://github.com/quotient-im/libQuotient/wiki/Handling-direct-chat-events DirectChatsMap dcLocalAdditions; DirectChatsMap dcLocalRemovals; std::unordered_map<QString, EventPtr> accountData; @@ -435,7 +434,7 @@ void Connection::onSyncSuccess(SyncData&& data, bool fromCache) visit( *eventPtr, [this](const DirectChatEvent& dce) { - // https://github.com/QMatrixClient/libqmatrixclient/wiki/Handling-direct-chat-events + // https://github.com/quotient-im/libQuotient/wiki/Handling-direct-chat-events const auto& usersToDCs = dce.usersToDirectChats(); DirectChatsMap remoteRemovals = erase_if(d->directChats, [&usersToDCs, this](auto it) { @@ -1350,9 +1349,9 @@ void Connection::setCacheState(bool newValue) } } -bool QMatrixClient::Connection::lazyLoading() const { return d->lazyLoading; } +bool Connection::lazyLoading() const { return d->lazyLoading; } -void QMatrixClient::Connection::setLazyLoading(bool newValue) +void Connection::setLazyLoading(bool newValue) { if (d->lazyLoading != newValue) { d->lazyLoading = newValue; |