From 5082d678471551cee2e30511b565b5959b2ea653 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Blin?= <sebastien.blin@savoirfairelinux.com> Date: Wed, 5 Dec 2018 10:51:09 -0500 Subject: [PATCH] conversation: supports sip: uri scheme when searching Change-Id: If4e9bba809afc1b53d2b87934e62e9e8fcaf730c Reviewed-by: Philippe Gorley <philippe.gorley@savoirfairelinux.com> --- src/conversationmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conversationmodel.cpp b/src/conversationmodel.cpp index febedf8d..6697bc04 100644 --- a/src/conversationmodel.cpp +++ b/src/conversationmodel.cpp @@ -293,7 +293,7 @@ ConversationModel::allFilteredConversations() const auto filter = pimpl_->filter; auto uri = URI(QString(filter.c_str())); - bool stripScheme = (uri.schemeType() == URI::SchemeType::NONE) || (uri.schemeType() == URI::SchemeType::RING); + bool stripScheme = (uri.schemeType() < URI::SchemeType::COUNT__); FlagPack<URI::Section> flags = URI::Section::USER_INFO | URI::Section::HOSTNAME | URI::Section::PORT; if (!stripScheme) { flags |= URI::Section::SCHEME; -- GitLab