forked from blue/squawk
transition to LMDBAL
This commit is contained in:
parent
69d797fe51
commit
81cf0f8d34
18 changed files with 76 additions and 42 deletions
|
@ -24,6 +24,7 @@ Models::Contact::Contact(const Account* acc, const QString& p_jid ,const QMap<QS
|
|||
Element(Item::contact, acc, p_jid, data, parentItem),
|
||||
availability(Shared::Availability::offline),
|
||||
state(Shared::SubscriptionState::none),
|
||||
encryption(Shared::EncryptionProtocol::none),
|
||||
trust(),
|
||||
presences(),
|
||||
status()
|
||||
|
|
|
@ -82,9 +82,11 @@ protected:
|
|||
private:
|
||||
Shared::Availability availability;
|
||||
Shared::SubscriptionState state;
|
||||
Shared::EncryptionProtocol encryption;
|
||||
Shared::TrustSummary trust;
|
||||
QMap<QString, Presence*> presences;
|
||||
QString status;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -29,8 +29,10 @@ Chat::Chat(Models::Account* acc, Models::Contact* p_contact, QWidget* parent):
|
|||
setAvatar(p_contact->getAvatarPath());
|
||||
|
||||
connect(contact, &Models::Contact::childChanged, this, &Chat::onContactChanged);
|
||||
if (p_contact->hasKeys(Shared::EncryptionProtocol::omemo2))
|
||||
if (p_contact->hasKeys(Shared::EncryptionProtocol::omemo2)) {
|
||||
m_ui->encryptionButton->setVisible(true);
|
||||
//if ()
|
||||
}
|
||||
}
|
||||
|
||||
Chat::~Chat()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue