Show different verification errors

This commit is contained in:
Nicolas Werner 2020-10-05 22:58:07 +02:00
parent bca29a4227
commit 8a4d85f801
7 changed files with 35 additions and 20 deletions

View file

@ -396,6 +396,18 @@ TimelineViewManager::verifyUser(QString userid)
tr("No share room with this user found. Create an "
"encrypted room with this user and try again."));
}
void
TimelineViewManager::removeVerificationFlow(DeviceVerificationFlow *flow)
{
for (auto it = dvList.keyValueBegin(); it != dvList.keyValueEnd(); ++it) {
if (it->second == flow) {
dvList.remove(it->first);
return;
}
}
}
void
TimelineViewManager::verifyDevice(QString userid, QString deviceid)
{