From 81762119b9285956d5c71ba7262b4ed367ac8e7e Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Tue, 12 Jan 2021 13:32:12 +0100 Subject: Make device verification request dialogs easier to understand. --- src/DeviceVerificationFlow.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/DeviceVerificationFlow.cpp') diff --git a/src/DeviceVerificationFlow.cpp b/src/DeviceVerificationFlow.cpp index f692629e..51ef79fd 100644 --- a/src/DeviceVerificationFlow.cpp +++ b/src/DeviceVerificationFlow.cpp @@ -505,6 +505,12 @@ DeviceVerificationFlow::getSasList() return this->sasList; } +bool +DeviceVerificationFlow::isSelfVerification() const +{ + return this->toClient.to_string() == http::client()->user_id().to_string(); +} + void DeviceVerificationFlow::setEventId(std::string event_id_) { -- cgit 1.5.1