mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-03 22:56:49 +00:00
In timeline filter : simple room is one-one and groups are conference (groupEnabled)
This commit is contained in:
parent
31d06c899a
commit
e44f98ab98
1 changed files with 1 additions and 1 deletions
|
|
@ -91,7 +91,7 @@ bool TimelineProxyModel::filterAcceptsRow (int sourceRow, const QModelIndex &sou
|
|||
auto timeline = sourceModel()->data(index).value<TimelineModel*>();
|
||||
bool show = (mFilterFlags==0);// Show all at 0 (no hide all)
|
||||
auto currentAddress = Utils::interpretUrl(CoreManager::getInstance()->getAccountSettingsModel()->getUsedSipAddressAsStringUriOnly());
|
||||
bool isGroup = timeline->getChatRoomModel()->isGroupEnabled() && timeline->getChatRoomModel()->getParticipants()->getCount() > 2;
|
||||
bool isGroup = timeline->getChatRoomModel()->isGroupEnabled();
|
||||
if( !show && ( (mFilterFlags & TimelineFilter::SimpleChatRoom) == TimelineFilter::SimpleChatRoom))
|
||||
show = !isGroup && !timeline->getChatRoomModel()->haveEncryption();
|
||||
if( !show && ( (mFilterFlags & TimelineFilter::SecureChatRoom) == TimelineFilter::SecureChatRoom))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue