@@ -437,8 +437,6 @@ class MessageComposerFragment : VectorBaseFragment<FragmentComposerBinding>(), A
437
437
438
438
private fun renderVoiceMessageMode (content : String ) {
439
439
ContentAttachmentData .fromJsonString(content)?.let { audioAttachmentData ->
440
- // TODO: review this behaviour
441
- // views.voiceMessageRecorderView.isVisible = true
442
440
messageComposerViewModel.handle(MessageComposerAction .InitializeVoiceRecorder (audioAttachmentData))
443
441
}
444
442
}
@@ -595,17 +593,6 @@ class MessageComposerFragment : VectorBaseFragment<FragmentComposerBinding>(), A
595
593
}
596
594
}
597
595
598
- /* *
599
- * Returns the root thread event if we are in a thread room, otherwise returns null.
600
- */
601
- fun getRootThreadEventId (): String? = withState(timelineViewModel) { it.rootThreadEventId }
602
-
603
- /* *
604
- * Returns true if the current room is a Thread room, false otherwise.
605
- */
606
- private fun isThreadTimeLine (): Boolean = withState(timelineViewModel) { it.isThreadTimeline() }
607
-
608
-
609
596
// AttachmentsHelper.Callback
610
597
override fun onContentAttachmentsReady (attachments : List <ContentAttachmentData >) {
611
598
val grouped = attachments.toGroupedContentAttachmentData()
@@ -787,6 +774,16 @@ class MessageComposerFragment : VectorBaseFragment<FragmentComposerBinding>(), A
787
774
return displayName
788
775
}
789
776
777
+ /* *
778
+ * Returns the root thread event if we are in a thread room, otherwise returns null.
779
+ */
780
+ fun getRootThreadEventId (): String? = withState(timelineViewModel) { it.rootThreadEventId }
781
+
782
+ /* *
783
+ * Returns true if the current room is a Thread room, false otherwise.
784
+ */
785
+ private fun isThreadTimeLine (): Boolean = withState(timelineViewModel) { it.isThreadTimeline() }
786
+
790
787
/* * Set whether the keyboard should disable personalized learning. */
791
788
@RequiresApi(Build .VERSION_CODES .O )
792
789
private fun EditText.setUseIncognitoKeyboard (useIncognitoKeyboard : Boolean ) {
0 commit comments