diff --git a/src/conversationmodel.cpp b/src/conversationmodel.cpp index febedf8d32cdbd60a4c7cc39e30a5686da46363f..6697bc0418a0ee471d7ba525f6fcdc505cd58fc0 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;