Fix sending sort order
This commit is contained in:
parent
b8c6decafc
commit
9f8d170dd4
|
@ -156,8 +156,10 @@ class Timeline {
|
||||||
: null);
|
: null);
|
||||||
|
|
||||||
if (i < events.length) {
|
if (i < events.length) {
|
||||||
|
final tempSortOrder = events[i].sortOrder;
|
||||||
events[i] = Event.fromJson(
|
events[i] = Event.fromJson(
|
||||||
eventUpdate.content, room, eventUpdate.sortOrder);
|
eventUpdate.content, room, eventUpdate.sortOrder);
|
||||||
|
events[i].sortOrder = tempSortOrder;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Event newEvent;
|
Event newEvent;
|
||||||
|
|
Loading…
Reference in a new issue