mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-16 12:00:03 +03:00
Fix potential ConcurrentModificationException
give a copy to avoid issues
This commit is contained in:
parent
9ec68fa5be
commit
479f10a28e
1 changed files with 1 additions and 1 deletions
|
@ -819,7 +819,7 @@ internal class DefaultTimeline(
|
|||
private val inMemorySendingEvents = Collections.synchronizedList<TimelineEvent>(ArrayList())
|
||||
|
||||
fun getInMemorySendingEvents(): List<TimelineEvent> {
|
||||
return inMemorySendingEvents
|
||||
return inMemorySendingEvents.toList()
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue