You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/room/RoomContentForwarder.kt
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,13 @@ class RoomContentForwarder(
49
49
toRoomIds:List<RoomId>,
50
50
timeoutMs:Long = 5000L
51
51
) {
52
-
val content = fromTimeline.getTimelineEventContentByEventId(eventId.value)
52
+
val content = fromTimeline
53
+
.getEventTimelineItemByEventId(eventId.value)
54
+
.content()
55
+
.asMessage()
56
+
?.content()
57
+
?:throwForwardEventException(toRoomIds)
58
+
53
59
val targetSlidingSyncRooms = toRoomIds.mapNotNull { roomId -> roomListService.roomOrNull(roomId.value) }
54
60
val targetRooms = targetSlidingSyncRooms.map { slidingSyncRoom ->
0 commit comments