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/api/src/main/kotlin/io/element/android/libraries/matrix/api/timeline/item/event/EventContent.kt
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,13 @@ data class MessageContent(
35
35
36
36
37
37
sealedinterfaceInReplyTo {
38
+
/** The event details are not loaded yet. We can fetch them. */
38
39
data classNotLoaded(valeventId:EventId) : InReplyTo
40
+
41
+
/** The event details are pending to be fetched. We should **not** fetch them again. */
42
+
object Pending : InReplyTo
43
+
44
+
/** The event details are available. */
39
45
data classReady(
40
46
valeventId:EventId,
41
47
valcontent:MessageContent,
@@ -44,6 +50,14 @@ sealed interface InReplyTo {
44
50
valsenderAvatarUrl:String?,
45
51
) : InReplyTo
46
52
53
+
/**
54
+
* Fetching the event details failed.
55
+
*
56
+
* We can try to fetch them again **with a proper retry strategy**, but not blindly:
57
+
*
58
+
* If the reason for the failure is consistent on the server, we'd enter a loop
Copy file name to clipboardExpand all lines: libraries/matrix/api/src/main/kotlin/io/element/android/libraries/matrix/api/timeline/item/event/EventTimelineItem.kt
Copy file name to clipboardExpand all lines: libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/timeline/item/event/EventMessageMapper.kt
0 commit comments