1
0
Fork 0
mirror of https://github.com/anyproto/anytype-heart.git synced 2025-06-08 05:47:07 +09:00

GO-5344: Rename databaseId -> stateId

This commit is contained in:
Sergey 2025-04-02 17:37:13 +02:00
parent 0ea332de6b
commit c2741a9bb7
No known key found for this signature in database
GPG key ID: 3B6BEF79160221C6
12 changed files with 425 additions and 421 deletions

View file

@ -30771,11 +30771,11 @@ Used to decode block meta only, without the content itself
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| id | [string](#string) | | Unique message identifier |
| orderId | [string](#string) | | Used for subscriptions |
| orderId | [string](#string) | | Lexicographical id for message in order of tree traversal |
| creator | [string](#string) | | Identifier for the message creator |
| createdAt | [int64](#int64) | | |
| modifiedAt | [int64](#int64) | | |
| databaseId | [string](#string) | | Ever increasing id (BSON ObjectId) for this message |
| stateId | [string](#string) | | stateId is ever-increasing id (BSON ObjectId) for this message. Unlike orderId, this ID is ordered by the time messages are added. For example, it's useful to prevent accidental reading of messages from the past when a ChatReadMessages request is sent: a message from the past may appear, but the client is still unaware of it |
| replyToMessageId | [string](#string) | | Identifier for the message being replied to |
| message | [ChatMessage.MessageContent](#anytype-model-ChatMessage-MessageContent) | | Message content |
| attachments | [ChatMessage.Attachment](#anytype-model-ChatMessage-Attachment) | repeated | Attachments slice |
@ -30877,7 +30877,7 @@ Used to decode block meta only, without the content itself
| ----- | ---- | ----- | ----------- |
| messages | [ChatState.UnreadState](#anytype-model-ChatState-UnreadState) | | unread messages |
| mentions | [ChatState.UnreadState](#anytype-model-ChatState-UnreadState) | | unread mentions |
| lastDatabaseId | [string](#string) | | reflects the state of the chat db at the moment of sending response/event that includes this state |
| lastStateId | [string](#string) | | reflects the state of the chat db at the moment of sending response/event that includes this state |