mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-25 14:00:00 +00:00
9938ea672d
A reason why this issue was happening is that prev and next message were set in a wrong way. An important thing is that list of messages is set in descending order in terms of `timestamp` of a message, that means a message with the most recent time is added at index 0. That further means that getting an index of the previous message from the current one is defined as `currentIndex + 1` and getting an index of the next one is defined as `currentIndex - 1`. Fixes #4417