mirror of
https://github.com/status-im/status-go.git
synced 2025-01-09 06:12:55 +00:00
3a84afd0f1
Currently replies to messages are handled in status-react. This causes some issues with the fact that sometimes replies might come out of order, they might be offloaded to the database etc. This commit changes the behavior so that status-go always returns the replies, and in case a reply comes out of order (first the reply, later the message being replied to), it will include in the messages the updated message. It also adds some fields (RTL,Replace,LineCount) to the database which were not previously saved, resulting in some potential bugs. The method that we use to pull replies is currently a bit naive, we just pull all the message again from the database, but has the advantage of being simple. It will go through performance testing to make sure performnace are acceptable, if so I think it's reasonable to avoid some complexity.
4 lines
224 B
SQL
4 lines
224 B
SQL
ALTER TABLE user_messages ADD COLUMN replace_message TEXT NOT NULL DEFAULT "";
|
|
ALTER TABLE user_messages ADD COLUMN rtl BOOLEAN NOT NULL DEFAULT FALSE;
|
|
ALTER TABLE user_messages ADD COLUMN line_count INT NOT NULL DEFAULT 0;
|