Files
simplex-chat/apps
Narasimha-sc 86fb87e6bb android, desktop: fix chat console crash on duplicate list keys
Terminal items were keyed by (System.currentTimeMillis(), System.nanoTime()).
nanoTime() never goes backwards but is not unique: two items created within
one clock tick get identical values, and currentTimeMillis() ties as well, so
the whole key collides and LazyColumn throws "Key was already used".

Terminal items are created on several threads - sendCmd runs in
Dispatchers.IO, received events are processed in another coroutine, and rejected
console commands on the main thread - and a command and its response are
created back to back, so ties happen, more often with a coarse clock.

Key by a per-item sequence number instead.
2026-10-19 10:30:14 +00:00
..
2026-10-17 19:23:53 +01:00