Changeset View
Changeset View
Standalone View
Standalone View
src/core/rocketchataccount.cpp
Show First 20 Lines • Show All 1767 Lines • ▼ Show 20 Line(s) | 1767 | { | |||
---|---|---|---|---|---|
1768 | return mAutoTranslateLanguagesModel; | 1768 | return mAutoTranslateLanguagesModel; | ||
1769 | } | 1769 | } | ||
1770 | 1770 | | |||
1771 | void RocketChatAccount::updateUser(const QJsonObject &object) | 1771 | void RocketChatAccount::updateUser(const QJsonObject &object) | ||
1772 | { | 1772 | { | ||
1773 | mUserModel->updateUser(object); | 1773 | mUserModel->updateUser(object); | ||
1774 | } | 1774 | } | ||
1775 | 1775 | | |||
1776 | void RocketChatAccount::userStatusChanged(User *user) | 1776 | void RocketChatAccount::userStatusChanged(const User &user) | ||
1777 | { | 1777 | { | ||
1778 | if (user->userId() == userID()) { | 1778 | if (user.userId() == userID()) { | ||
1779 | const User::PresenceStatus status = Utils::presenceStatusFromString(user->status()); | 1779 | const User::PresenceStatus status = Utils::presenceStatusFromString(user.status()); | ||
1780 | statusModel()->setCurrentPresenceStatus(status); | 1780 | statusModel()->setCurrentPresenceStatus(status); | ||
1781 | Q_EMIT userStatusUpdated(status); | 1781 | Q_EMIT userStatusUpdated(status); | ||
1782 | } | 1782 | } | ||
1783 | mRoomModel->userStatusChanged(user); | 1783 | mRoomModel->userStatusChanged(user); | ||
1784 | } | 1784 | } | ||
1785 | 1785 | | |||
1786 | void RocketChatAccount::ignoreUser(const QString &rid, const QString &userId, bool ignore) | 1786 | void RocketChatAccount::ignoreUser(const QString &rid, const QString &userId, bool ignore) | ||
1787 | { | 1787 | { | ||
▲ Show 20 Lines • Show All 169 Lines • Show Last 20 Lines |