2019-10-20 13:39:47 +03:00
|
|
|
import QtQuick 2.6
|
|
|
|
import com.github.nheko 1.0
|
|
|
|
|
|
|
|
DelegateChooser {
|
2019-10-25 12:46:25 +03:00
|
|
|
//role: "type" //< not supported in our custom implementation, have to use roleValue
|
2019-10-20 13:39:47 +03:00
|
|
|
roleValue: model.type
|
|
|
|
|
|
|
|
DelegateChoice {
|
|
|
|
roleValue: MtxEvent.TextMessage
|
2019-10-28 00:01:40 +03:00
|
|
|
TextMessage {}
|
2019-10-20 13:39:47 +03:00
|
|
|
}
|
|
|
|
DelegateChoice {
|
|
|
|
roleValue: MtxEvent.NoticeMessage
|
2019-10-28 00:01:40 +03:00
|
|
|
NoticeMessage {}
|
2019-10-20 13:39:47 +03:00
|
|
|
}
|
|
|
|
DelegateChoice {
|
|
|
|
roleValue: MtxEvent.EmoteMessage
|
2019-10-28 00:01:40 +03:00
|
|
|
TextMessage {}
|
2019-10-20 13:39:47 +03:00
|
|
|
}
|
|
|
|
DelegateChoice {
|
|
|
|
roleValue: MtxEvent.ImageMessage
|
2019-10-28 00:01:40 +03:00
|
|
|
ImageMessage {}
|
2019-10-20 13:39:47 +03:00
|
|
|
}
|
|
|
|
DelegateChoice {
|
|
|
|
roleValue: MtxEvent.Sticker
|
2019-10-28 00:01:40 +03:00
|
|
|
ImageMessage {}
|
2019-10-20 13:39:47 +03:00
|
|
|
}
|
|
|
|
DelegateChoice {
|
|
|
|
roleValue: MtxEvent.FileMessage
|
2019-10-28 00:01:40 +03:00
|
|
|
FileMessage {}
|
2019-10-20 13:39:47 +03:00
|
|
|
}
|
|
|
|
DelegateChoice {
|
|
|
|
roleValue: MtxEvent.VideoMessage
|
2019-10-28 00:01:40 +03:00
|
|
|
PlayableMediaMessage {}
|
2019-10-20 13:39:47 +03:00
|
|
|
}
|
|
|
|
DelegateChoice {
|
|
|
|
roleValue: MtxEvent.AudioMessage
|
2019-10-28 00:01:40 +03:00
|
|
|
PlayableMediaMessage {}
|
2019-10-20 13:39:47 +03:00
|
|
|
}
|
|
|
|
DelegateChoice {
|
|
|
|
roleValue: MtxEvent.Redacted
|
2019-10-28 00:01:40 +03:00
|
|
|
Redacted {}
|
2019-10-20 13:39:47 +03:00
|
|
|
}
|
|
|
|
DelegateChoice {
|
2019-10-28 00:01:40 +03:00
|
|
|
Placeholder {}
|
2019-10-20 13:39:47 +03:00
|
|
|
}
|
|
|
|
}
|