mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-28 15:26:10 +00:00
Sale Djenic
9938ea672d
refactor(@desktop/chat): username is misplaced when sending messages in the channel
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
Status-desktop
Desktop client for the Status Network built with Nim and Qt
Dev Docs: https://hackmd.io/@status-desktop/B1naRjxh_/https%3A%2F%2Fhackmd.io%2F%40status-desktop%2FB1eOaf-nd
Description
Languages
QML
39%
JavaScript
29.8%
Nim
18.6%
Python
5.7%
C++
5.2%
Other
1.6%