Changeset View
Changeset View
Standalone View
Standalone View
src/core/ddpapi/ddpclient.cpp
Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Line(s) | |||||
66 | 66 | | |||
67 | void input_user_channel_autocomplete(const QJsonObject &root, RocketChatAccount *account) | 67 | void input_user_channel_autocomplete(const QJsonObject &root, RocketChatAccount *account) | ||
68 | { | 68 | { | ||
69 | if (account->ruqolaLogger()) { | 69 | if (account->ruqolaLogger()) { | ||
70 | account->ruqolaLogger()->dataReceived(QByteArrayLiteral("Input channel/User autocomplete:") + QJsonDocument(root).toJson()); | 70 | account->ruqolaLogger()->dataReceived(QByteArrayLiteral("Input channel/User autocomplete:") + QJsonDocument(root).toJson()); | ||
71 | } | 71 | } | ||
72 | const QJsonObject obj = root.value(QLatin1String("result")).toObject(); | 72 | const QJsonObject obj = root.value(QLatin1String("result")).toObject(); | ||
73 | 73 | | |||
74 | account->inputTextCompleter(obj); | 74 | account->inputTextManager()->inputTextCompleter(obj); | ||
75 | } | 75 | } | ||
76 | 76 | | |||
77 | void process_backlog(const QJsonObject &root, RocketChatAccount *account) | 77 | void process_backlog(const QJsonObject &root, RocketChatAccount *account) | ||
78 | { | 78 | { | ||
79 | const QJsonObject obj = root.value(QLatin1String("result")).toObject(); | 79 | const QJsonObject obj = root.value(QLatin1String("result")).toObject(); | ||
80 | //qCDebug(RUQOLA_DDPAPI_LOG) << obj.value(QLatin1String("messages")).toArray().size(); | 80 | //qCDebug(RUQOLA_DDPAPI_LOG) << obj.value(QLatin1String("messages")).toArray().size(); | ||
81 | account->rocketChatBackend()->processIncomingMessages(obj.value(QLatin1String("messages")).toArray()); | 81 | account->rocketChatBackend()->processIncomingMessages(obj.value(QLatin1String("messages")).toArray()); | ||
82 | } | 82 | } | ||
▲ Show 20 Lines • Show All 869 Lines • Show Last 20 Lines |