mirror of
https://github.com/anyproto/anytype-heart.git
synced 2025-06-09 09:35:00 +09:00
GO-5341 Merge main
This commit is contained in:
commit
5ac5c60ce1
67 changed files with 5597 additions and 3741 deletions
2831
pb/commands.pb.go
2831
pb/commands.pb.go
File diff suppressed because it is too large
Load diff
1311
pb/events.pb.go
1311
pb/events.pb.go
File diff suppressed because it is too large
Load diff
|
@ -8333,15 +8333,16 @@ message Rpc {
|
|||
|
||||
message ReadMessages {
|
||||
enum ReadType {
|
||||
messages = 0;
|
||||
replies = 1;
|
||||
Messages = 0;
|
||||
Mentions = 1;
|
||||
}
|
||||
|
||||
message Request {
|
||||
ReadType type = 1;
|
||||
string chatObjectId = 2; // id of the chat object
|
||||
string afterOrderId = 3; // read from this orderId; if empty - read from the beginning of the chat
|
||||
string beforeOrderId = 4; // read til this orderId
|
||||
int64 lastDbTimestamp = 5; // dbTimestamp from the last processed ChatState event(or GetMessages). Used to prevent race conditions
|
||||
string lastStateId = 5; // stateId from the last processed ChatState event(or GetMessages). Used to prevent race conditions
|
||||
}
|
||||
|
||||
message Response {
|
||||
|
@ -8364,8 +8365,14 @@ message Rpc {
|
|||
}
|
||||
|
||||
message Unread {
|
||||
enum ReadType {
|
||||
Messages = 0;
|
||||
Mentions = 1;
|
||||
}
|
||||
|
||||
message Request {
|
||||
string chatObjectId = 2; // id of the chat object
|
||||
ReadType type = 1;
|
||||
string chatObjectId = 2;
|
||||
string afterOrderId = 3;
|
||||
}
|
||||
|
||||
|
|
|
@ -117,7 +117,8 @@ message Event {
|
|||
Chat.Add chatAdd = 128;
|
||||
Chat.Update chatUpdate = 129;
|
||||
Chat.UpdateReactions chatUpdateReactions = 130;
|
||||
Chat.UpdateReadStatus chatUpdateReadStatus = 134; // received to update per-message read status (if needed to highlight the unread messages in the UI)
|
||||
Chat.UpdateMessageReadStatus chatUpdateMessageReadStatus = 134; // received to update per-message read status (if needed to highlight the unread messages in the UI)
|
||||
Chat.UpdateMentionReadStatus chatUpdateMentionReadStatus = 135; // received to update per-message mention read status (if needed to highlight the unread mentions in the UI)
|
||||
|
||||
Chat.Delete chatDelete = 131;
|
||||
Chat.UpdateState chatStateUpdate = 133; // in case new unread messages received or chat state changed (e.g. message read on another device)
|
||||
|
@ -136,7 +137,6 @@ message Event {
|
|||
message Delete {
|
||||
string id = 1;
|
||||
repeated string subIds = 2;
|
||||
model.ChatState state = 3; // Chat state. dbState should be persisted after rendered
|
||||
}
|
||||
message Update {
|
||||
string id = 1;
|
||||
|
@ -149,7 +149,12 @@ message Event {
|
|||
repeated string subIds = 3;
|
||||
}
|
||||
|
||||
message UpdateReadStatus {
|
||||
message UpdateMessageReadStatus {
|
||||
repeated string ids = 1;
|
||||
bool isRead = 2;
|
||||
repeated string subIds = 3;
|
||||
}
|
||||
message UpdateMentionReadStatus {
|
||||
repeated string ids = 1;
|
||||
bool isRead = 2;
|
||||
repeated string subIds = 3;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue