mirror of
https://github.com/status-im/status-go.git
synced 2025-01-09 14:16:21 +00:00
65be6f2b96
`FirstMessageTimestamp` enables members of the community to determine if there are any messages they can fetch on the community channel(chat). `FirstMessageTimestamp` is advertised by admin for each community chat through `CommunityDescription`. It assumes admin is online frequently enough to capture the first channel message. For existing communities admin determines first message timestamp by finding oldest chat message in its local database. task: status-im/status-desktop#6731
2 lines
113 B
SQL
2 lines
113 B
SQL
ALTER TABLE chats ADD COLUMN first_message_timestamp INT DEFAULT 0;
|
|
UPDATE chats SET first_message_timestamp = 0; |