Add changelog file

This commit is contained in:
ariskotsomitopoulos 2021-11-04 09:33:32 +02:00
parent a2a2315f9c
commit cb0fefa74d
4 changed files with 12 additions and 9 deletions

View file

@ -29,7 +29,8 @@ object RelationType {
const val REFERENCE = "m.reference"
/** Lets you define an event which is a reply to an existing event.*/
const val THREAD = "m.thread"
// const val THREAD = "m.thread"
const val THREAD = "io.element.thread"
/** Lets you define an event which adds a response to an existing event.*/
const val RESPONSE = "org.matrix.response"

View file

@ -56,7 +56,7 @@ internal class DefaultRelationService @AssistedInject constructor(
private val timelineEventMapper: TimelineEventMapper,
@SessionDatabase private val monarchy: Monarchy,
private val taskExecutor: TaskExecutor) :
RelationService {
RelationService {
@AssistedFactory
interface Factory {
@ -161,6 +161,9 @@ internal class DefaultRelationService @AssistedInject constructor(
override fun replyInThread(eventToReplyInThread: TimelineEvent, replyInThreadText: CharSequence, autoMarkdown: Boolean): Cancelable? {
val event = eventFactory.createThreadTextEvent(eventToReplyInThread, TextContent(replyInThreadText.toString()))
.also {
saveLocalEcho(it)
}
return eventSenderProcessor.postEvent(event, cryptoSessionInfoProvider.isRoomEncrypted(roomId))
}

View file

@ -47,7 +47,7 @@ class RoomThreadDetailFragment @Inject constructor(
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
initTextComposer()
views.testTextVeiwddasda.text = "${roomThreadDetailArgs.eventId} -- ${roomThreadDetailArgs.roomId}"
// views.testTextVeiwddasda.text = "${roomThreadDetailArgs.eventId} -- ${roomThreadDetailArgs.roomId}"
}
private fun initTextComposer(){

View file

@ -6,12 +6,11 @@
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/testTextVeiwddasda"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/room_threads_filter"
android:textSize="25sp"
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/roomThreadDetailRecyclerView"
android:layout_width="0dp"
android:layout_height="0dp"
android:overScrollMode="always"
app:layout_constraintBottom_toTopOf="@id/roomThreadDetailTextComposerView"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"