Newer
Older
import QtQuick 2.6
import im.nheko 1.0
DelegateChooser {
//role: "type" //< not supported in our custom implementation, have to use roleValue
roleValue: model.type
DelegateChoice {
roleValue: MtxEvent.TextMessage
}
DelegateChoice {
roleValue: MtxEvent.NoticeMessage
}
DelegateChoice {
roleValue: MtxEvent.EmoteMessage
}
DelegateChoice {
roleValue: MtxEvent.ImageMessage
}
DelegateChoice {
roleValue: MtxEvent.Sticker
}
DelegateChoice {
roleValue: MtxEvent.FileMessage
}
DelegateChoice {
roleValue: MtxEvent.VideoMessage
}
DelegateChoice {
roleValue: MtxEvent.AudioMessage
}
DelegateChoice {
roleValue: MtxEvent.Redacted
Pill {
text: qsTr("redacted")
}
}
DelegateChoice {
roleValue: MtxEvent.Encryption
Pill {
text: qsTr("Encryption enabled")
}
}
DelegateChoice {
roleValue: MtxEvent.Name
NoticeMessage {
notice: model.roomName ? qsTr("room name changed to: %1").arg(model.roomName) : qsTr("removed room name")
}
}
DelegateChoice {
roleValue: MtxEvent.Topic
NoticeMessage {
notice: model.roomTopic ? qsTr("topic changed to: %1").arg(model.roomTopic) : qsTr("removed topic")
}
}
DelegateChoice {