Keep local echo delegates at the bottom

This commit is contained in:
miruka
2019-07-04 23:12:21 -04:00
parent 1db406d9af
commit dbcfad1c50
3 changed files with 13 additions and 4 deletions

View File

@@ -75,7 +75,12 @@ function onTimelineEventReceived(
"targetUserId": target_user_id,
}
// Replace any matching local echo
if (is_local_echo) {
timelines.append(item)
return
}
// Replace first matching local echo
var found = timelines.getIndices({
"roomId": room_id,
"senderId": sender_id,