1
0
Fork 0
mirror of https://github.com/anyproto/anytype-heart.git synced 2025-06-09 17:44:59 +09:00

GO-4727 Add ChatState to SubscribeLastMessages resp,

This commit is contained in:
Roman Khafizianov 2025-01-30 23:37:08 +01:00
parent b77014e27b
commit 368c1f8fc0
No known key found for this signature in database
GPG key ID: F07A7D55A2684852
6 changed files with 1328 additions and 1265 deletions

View file

@ -10570,6 +10570,7 @@ Get marks list in the selected range in text block.
| error | [Rpc.Chat.SubscribeLastMessages.Response.Error](#anytype-Rpc-Chat-SubscribeLastMessages-Response-Error) | | |
| messages | [model.ChatMessage](#anytype-model-ChatMessage) | repeated | List of messages |
| numMessagesBefore | [int32](#int32) | | Number of messages before the returned messages |
| chatState | [model.ChatState](#anytype-model-ChatState) | | Chat state |
@ -27491,7 +27492,7 @@ Precondition: user A opened a block
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| state | [model.ChatState](#anytype-model-ChatState) | | todo: we should make sure we protect from the race conds when sending Chat.* and Chat.UpdateState at the same time |
| state | [model.ChatState](#anytype-model-ChatState) | | |
@ -27705,9 +27706,9 @@ Precondition: user A opened a block
| chatAdd | [Event.Chat.Add](#anytype-Event-Chat-Add) | | |
| chatUpdate | [Event.Chat.Update](#anytype-Event-Chat-Update) | | |
| chatUpdateReactions | [Event.Chat.UpdateReactions](#anytype-Event-Chat-UpdateReactions) | | |
| chatUpdateReadStatus | [Event.Chat.UpdateReadStatus](#anytype-Event-Chat-UpdateReadStatus) | | |
| chatUpdateReadStatus | [Event.Chat.UpdateReadStatus](#anytype-Event-Chat-UpdateReadStatus) | | received to update per-message read status (if needed to highlight the unread messages in the UI) |
| chatDelete | [Event.Chat.Delete](#anytype-Event-Chat-Delete) | | |
| chatStateUpdate | [Event.Chat.UpdateState](#anytype-Event-Chat-UpdateState) | | received in case of remote-triggered state update (e.g. messages read on another device) |
| chatStateUpdate | [Event.Chat.UpdateState](#anytype-Event-Chat-UpdateState) | | in case new unread messages received or chat state changed (e.g. message read on another device) |