mirror of
https://github.com/status-im/status-go.git
synced 2025-01-09 14:16:21 +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.
18 lines
850 B
Go
18 lines
850 B
Go
// This file is necessary because "github.com/status-im/migrate/v4"
|
|
// can't handle files starting with a prefix. At least that's the case
|
|
// for go-bindata.
|
|
// If go-bindata is called from the same directory, asset names
|
|
// have no prefix and "github.com/status-im/migrate/v4" works as expected.
|
|
|
|
// NOTE: The naming of the file needs to follow the unix timestamp convention
|
|
// unlike the two initial files.
|
|
// That's because currently the encryption migrations and protocol migrations
|
|
// share the same table, which means that the latest migration in terms of filename
|
|
// is from the encryption namespace files, which uses a unix timestamp.
|
|
// If we add 00003_... for example, this will be ignored in existing clients as
|
|
// older than the latest encryption migration.
|
|
|
|
package sqlite
|
|
|
|
//go:generate go-bindata -pkg migrations -o ../migrations.go .
|