mirror of
https://github.com/element-hq/element-android
synced 2024-11-24 10:25:35 +03:00
Fix mentions UI within threads
This commit is contained in:
parent
35ee72aac0
commit
e0630ceac0
3 changed files with 4 additions and 4 deletions
|
@ -192,7 +192,7 @@ internal class DefaultRelationService @AssistedInject constructor(
|
|||
eventFactory.createThreadTextEvent(
|
||||
rootThreadEventId = rootThreadEventId,
|
||||
roomId = roomId,
|
||||
text = replyInThreadText.toString(),
|
||||
text = replyInThreadText,
|
||||
msgType = msgType,
|
||||
autoMarkdown = autoMarkdown,
|
||||
formattedText = formattedText)
|
||||
|
|
|
@ -396,11 +396,11 @@ internal class LocalEchoEventFactory @Inject constructor(
|
|||
fun createThreadTextEvent(
|
||||
rootThreadEventId: String,
|
||||
roomId: String,
|
||||
text: String,
|
||||
text: CharSequence,
|
||||
msgType: String,
|
||||
autoMarkdown: Boolean,
|
||||
formattedText: String?): Event {
|
||||
val content = formattedText?.let { TextContent(text, it) } ?: createTextContent(text, autoMarkdown)
|
||||
val content = formattedText?.let { TextContent(text.toString(), it) } ?: createTextContent(text, autoMarkdown)
|
||||
return createEvent(
|
||||
roomId,
|
||||
EventType.MESSAGE,
|
||||
|
|
|
@ -191,7 +191,7 @@ class MessageComposerViewModel @AssistedInject constructor(
|
|||
if (state.rootThreadEventId != null) {
|
||||
room.replyInThread(
|
||||
rootThreadEventId = state.rootThreadEventId,
|
||||
replyInThreadText = action.text.toString(),
|
||||
replyInThreadText = action.text,
|
||||
autoMarkdown = action.autoMarkdown)
|
||||
} else {
|
||||
room.sendTextMessage(action.text, autoMarkdown = action.autoMarkdown)
|
||||
|
|
Loading…
Reference in a new issue