summary refs log tree commit diff
path: root/src/timeline/TimelineViewManager.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-10-05 22:58:07 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2020-10-05 22:58:07 +0200
commit8a4d85f801368137a0b1c17621947b334e280257 (patch)
tree73a1e0c35bfda3c33aa549f1b1282d9bcda6ab09 /src/timeline/TimelineViewManager.cpp
parentMake steps in verification flow explicit (diff)
downloadnheko-8a4d85f801368137a0b1c17621947b334e280257.tar.xz
Show different verification errors
Diffstat (limited to 'src/timeline/TimelineViewManager.cpp')
-rw-r--r--src/timeline/TimelineViewManager.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/timeline/TimelineViewManager.cpp b/src/timeline/TimelineViewManager.cpp

index 250cd5f0..ed720056 100644 --- a/src/timeline/TimelineViewManager.cpp +++ b/src/timeline/TimelineViewManager.cpp
@@ -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) {