7004b4ea3f
- MessageList renamed to RoomEventList - MessageDelegate renamed to RoomEventDelegate - Banner and RoomEventList get their own folders
34 lines
807 B
QML
34 lines
807 B
QML
import QtQuick 2.7
|
|
import QtQuick.Controls 2.2
|
|
import QtQuick.Layouts 1.4
|
|
import "../../Base" as Base
|
|
import "../utils.js" as ChatJS
|
|
|
|
Banner {
|
|
property var leftEvent: null
|
|
|
|
color: Base.HStyle.chat.leftBanner.background
|
|
|
|
avatarName: ChatJS.getLeftBannerAvatarName(leftEvent, chatPage.userId)
|
|
labelText: ChatJS.getLeftBannerText(leftEvent)
|
|
|
|
buttonModel: [
|
|
{
|
|
name: "forget",
|
|
text: qsTr("Forget"),
|
|
iconName: "forget_room",
|
|
}
|
|
]
|
|
|
|
buttonCallbacks: {
|
|
"forget": function(button) {
|
|
button.loading = true
|
|
chatPage.canLoadPastEvents = false
|
|
Backend.clientManager.clients[chatPage.userId].forgetRoom(
|
|
chatPage.roomId
|
|
)
|
|
pageStack.clear()
|
|
},
|
|
}
|
|
}
|