fix(pinning): fix warnings

This commit is contained in:
Lukáš Tinkl 2022-09-12 18:35:20 +02:00 committed by Lukáš Tinkl
parent eaed074957
commit 5e0d5a9f8c
3 changed files with 5 additions and 4 deletions

View File

@ -90,7 +90,7 @@ ColumnLayout {
onPinnedMessagesLimitReached: {
if(!chatContentModule) {
console.debug("error on open pinned messages limit reached from message context menu - chat content module is not set")
console.warn("error on open pinned messages limit reached from message context menu - chat content module is not set")
return
}
Global.openPopup(Global.pinnedMessagesPopup, {

View File

@ -5,6 +5,7 @@ import QtQuick.Layouts 1.13
import StatusQ.Core 0.1
import StatusQ.Core.Theme 0.1
import StatusQ.Controls 0.1
import StatusQ.Core.Utils 0.1 as SQUtils
import utils 1.0
@ -262,7 +263,7 @@ RowLayout {
case Constants.chatType.privateGroupChat:
return qsTr("%n member(s)", "", chatContentModule.usersModule.model.count)
case Constants.chatType.communityChat:
return Utils.linkifyAndXSS(chatContentModule.chatDetails.description).trim()
return SQUtils.Utils.linkifyAndXSS(chatContentModule.chatDetails.description).trim()
default:
return ""
}
@ -288,7 +289,7 @@ RowLayout {
console.debug("error on open pinned messages - chat content module is not set")
return
}
Global.openPopup(pinnedMessagesPopupComponent, {
Global.openPopup(Global.pinnedMessagesPopup, {
store: rootStore,
messageStore: root.rootStore.messageStore,
pinnedMessagesModel: chatContentModule.pinnedMessagesModel,

View File

@ -193,7 +193,7 @@ StatusPopupMenu {
icon: root.selectedUserIcon
trustStatus: d.contactDetails && d.contactDetails.trustStatus ? d.contactDetails.trustStatus
: Constants.trustStatus.unknown
isContact: root.isMyMutualContact
isContact: root.isContact
isCurrentUser: root.isMe
}