Get 3PID binds on startup

Get binds on startup and update the staus properly after bind/unbinding 3PIDs
This commit is contained in:
James Graham
2024-06-08 08:42:34 +00:00
parent 8e5ccb5461
commit 91109ca845
4 changed files with 98 additions and 2 deletions

View File

@@ -28,6 +28,7 @@ public:
enum EventRoles {
AddressRole = Qt::DisplayRole, /**< The third-party identifier address. */
MediumRole, /**< The medium of the third-party identifier. One of: [email, msisdn]. */
IsBoundRole, /**< Whether the 3PID is bound to the current identity server. */
};
explicit ThreePIdModel(NeoChatConnection *parent);
@@ -57,4 +58,8 @@ public:
private:
QVector<Quotient::GetAccount3PIDsJob::ThirdPartyIdentifier> m_threePIds;
QList<QString> m_bindings;
void refreshBindStatus();
};