mirror of
https://github.com/status-im/specs.git
synced 2025-02-26 20:50:36 +00:00
Address feedback
This commit is contained in:
parent
ca530d9d80
commit
8f77469555
@ -100,10 +100,7 @@ message ChatMessage {
|
|||||||
string response_to = 4;
|
string response_to = 4;
|
||||||
// Ens name of the sender
|
// Ens name of the sender
|
||||||
string ens_name = 5;
|
string ens_name = 5;
|
||||||
// Chat id, this field is symmetric for public-chats and private group chats,
|
// Chat id is the ID of the chat
|
||||||
// but asymmetric in case of one-to-ones, as the sender will use the chat-id
|
|
||||||
// of the received, while the receiver will use the chat-id of the sender.
|
|
||||||
// Probably should be the concatenation of sender-pk & receiver-pk in alphabetical order
|
|
||||||
string chat_id = 6;
|
string chat_id = 6;
|
||||||
|
|
||||||
// The type of message (public/one-to-one/private-group-chat)
|
// The type of message (public/one-to-one/private-group-chat)
|
||||||
@ -186,15 +183,14 @@ and the `type`
|
|||||||
message ImageMessage {
|
message ImageMessage {
|
||||||
bytes payload = 1;
|
bytes payload = 1;
|
||||||
ImageType type = 2;
|
ImageType type = 2;
|
||||||
|
enum ImageType {
|
||||||
|
UNKNOWN_IMAGE_TYPE = 0;
|
||||||
|
PNG = 1;
|
||||||
|
JPEG = 2;
|
||||||
|
WEBP = 3;
|
||||||
|
GIF = 4;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
enum ImageType {
|
|
||||||
UNKNOWN_IMAGE_TYPE = 0;
|
|
||||||
IMAGE_JPEG = 1;
|
|
||||||
IMAGE_PNG = 2;
|
|
||||||
IMAGE_WEBP = 3;
|
|
||||||
}
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Message types
|
#### Message types
|
||||||
@ -357,3 +353,8 @@ There are two ways to upgrade the protocol without breaking compatibility:
|
|||||||
-
|
-
|
||||||
|
|
||||||
## Design rationale
|
## Design rationale
|
||||||
|
|
||||||
|
|
||||||
|
## Copyright
|
||||||
|
|
||||||
|
Copyright and related rights waived via [CC0](https://creativecommons.org/publicdomain/zero/1.0/).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user