- Allow reply to reply by using BaseVoiceEvent
This commit is contained in:
davotoula
2025-12-23 13:07:56 +00:00
parent 2422e77dd0
commit 6785f124e9
5 changed files with 11 additions and 12 deletions
@@ -65,12 +65,12 @@ class VoiceReplyEvent(
hash: String,
duration: Int,
waveform: List<Float>,
replyingTo: EventHintBundle<VoiceEvent>,
replyingTo: EventHintBundle<BaseVoiceEvent>,
) = build(AudioMeta(url, mimeType, hash, duration, waveform), replyingTo)
fun build(
voiceMessage: AudioMeta,
replyingTo: EventHintBundle<VoiceEvent>,
replyingTo: EventHintBundle<BaseVoiceEvent>,
createdAt: Long = TimeUtils.now(),
initializer: TagArrayBuilder<VoiceReplyEvent>.() -> Unit = {},
) = build(voiceMessage, KIND, ALT_DESCRIPTION, createdAt) {