Suggest verifying your own device in Devices settings
This button is currently hidden under the user menu, but it should be shown more prominently - especially under the Devices settings. The button under the user menu and this new one is now hidden when your device is already verified.
This commit is contained in:
@@ -558,4 +558,9 @@ bool NeoChatConnection::enablePushNotifications() const
|
||||
return m_pushNotificationsEnabled;
|
||||
}
|
||||
|
||||
bool NeoChatConnection::isVerifiedSession() const
|
||||
{
|
||||
return isVerifiedDevice(userId(), deviceId());
|
||||
}
|
||||
|
||||
#include "moc_neochatconnection.cpp"
|
||||
|
||||
@@ -206,6 +206,11 @@ public:
|
||||
|
||||
LinkPreviewer *previewerForLink(const QUrl &link);
|
||||
|
||||
/**
|
||||
* @return True if this connection is a verified session.
|
||||
*/
|
||||
Q_INVOKABLE bool isVerifiedSession() const;
|
||||
|
||||
Q_SIGNALS:
|
||||
void globalUrlPreviewEnabledChanged();
|
||||
void labelChanged();
|
||||
|
||||
Reference in New Issue
Block a user