linphone-desktop/Linphone/view/Control/Display/Chat/ChatMessagesListView.qml
Gaelle Braud b79b324027 open chat room from call/conf
navigate to chat from contact/history/magic search

select chat when joining from contact/history/magic search

message notification

filter chat rooms
2025-05-05 14:36:46 +02:00

38 lines
1.1 KiB
QML

import QtQuick
import QtQuick.Effects
import QtQuick.Layouts
import QtQuick.Controls.Basic as Control
import Linphone
import UtilsCpp
import SettingsCpp
import "qrc:/qt/qml/Linphone/view/Style/buttonStyle.js" as ButtonStyle
import "qrc:/qt/qml/Linphone/view/Control/Tool/Helper/utils.js" as Utils
ListView {
id: mainItem
property ChatGui chat
spacing: Math.round(20 * DefaultStyle.dp)
Component.onCompleted: positionViewAtEnd()
model: ChatMessageProxy {
chatGui: mainItem.chat
}
header: Item {
height: Math.round(18 * DefaultStyle.dp)
}
delegate: ChatMessage {
id: chatMessage
width: Math.min(implicitWidth, Math.round(mainItem.width * (3/4)))
// height: childrenRect.height
backgroundColor: isRemoteMessage ? DefaultStyle.main2_100 : DefaultStyle.main1_100
contentText: modelData.core.text
isFirstMessage: true
isRemoteMessage: modelData.core.isRemoteMessage
anchors.right: !isRemoteMessage && parent
? parent.right
: undefined
}
}