Skip to content
Snippets Groups Projects
MessageDelegate.qml 1002 B
Newer Older
	//role: "type" //< not supported in our custom implementation, have to use roleValue
	roleValue: model.type

	DelegateChoice {
		roleValue: MtxEvent.TextMessage
		TextMessage {}
	}
	DelegateChoice {
		roleValue: MtxEvent.NoticeMessage
		NoticeMessage {}
	}
	DelegateChoice {
		roleValue: MtxEvent.EmoteMessage
		TextMessage {}
	}
	DelegateChoice {
		roleValue: MtxEvent.ImageMessage
		ImageMessage {}
	}
	DelegateChoice {
		roleValue: MtxEvent.Sticker
		ImageMessage {}
	}
	DelegateChoice {
		roleValue: MtxEvent.FileMessage
		FileMessage {}
	}
	DelegateChoice {
		roleValue: MtxEvent.VideoMessage
		PlayableMediaMessage {}
	}
	DelegateChoice {
		roleValue: MtxEvent.AudioMessage
		PlayableMediaMessage {}
	}
	DelegateChoice {
		roleValue: MtxEvent.Redacted
		Pill {
			text: qsTr("redacted")
		}
	}
	DelegateChoice {
		roleValue: MtxEvent.Encryption
		Pill {
			text: qsTr("Encryption enabled")
		}
		Placeholder {}