mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 11:28:07 +00:00
Fix errors when conversation has no chat room.
This commit is contained in:
parent
f7eee0444c
commit
308c3c8248
1 changed files with 8 additions and 3 deletions
|
|
@ -624,9 +624,9 @@ ColumnLayout {
|
|||
proxyModel: ChatRoomProxyModel {
|
||||
id: chatRoomProxyModel
|
||||
|
||||
Component.onCompleted: {
|
||||
if ( (!chatRoomModel.haveEncryption && !SettingsModel.standardChatEnabled)
|
||||
|| (chatRoomModel.haveEncryption && !SettingsModel.secureChatEnabled) ) {
|
||||
function updateFilter(){
|
||||
if ( chatRoomModel && ((!chatRoomModel.haveEncryption && !SettingsModel.standardChatEnabled)
|
||||
|| (chatRoomModel.haveEncryption && !SettingsModel.secureChatEnabled)) ) {
|
||||
setEntryTypeFilter(ChatRoomModel.CallEntry)
|
||||
}
|
||||
}
|
||||
|
|
@ -635,6 +635,11 @@ ColumnLayout {
|
|||
fullPeerAddress: conversation.fullPeerAddress
|
||||
fullLocalAddress: conversation.fullLocalAddress
|
||||
localAddress: conversation.localAddress// Reload is done on localAddress. Use this order
|
||||
|
||||
onChatRoomModelChanged: updateFilter()
|
||||
Component.onCompleted: {
|
||||
updateFilter()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue