Moved ImageType enum to enums.proto
This commit is contained in:
parent
f1f409c209
commit
6c4eea2a6b
|
@ -2,6 +2,8 @@ syntax = "proto3";
|
|||
|
||||
package protobuf;
|
||||
|
||||
import "enums.proto";
|
||||
|
||||
// ChatIdentity represents the user defined identity associated with their messages
|
||||
message ChatIdentity {
|
||||
// Lamport timestamp of the chat message
|
||||
|
@ -58,5 +60,4 @@ message IdentityImage {
|
|||
// AVATAR is payload data that can be parsed as avatar compilation instructions
|
||||
AVATAR = 3;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -12,13 +12,6 @@ message StickerMessage {
|
|||
message ImageMessage {
|
||||
bytes payload = 1;
|
||||
ImageType type = 2;
|
||||
enum ImageType {
|
||||
UNKNOWN_IMAGE_TYPE = 0;
|
||||
PNG = 1;
|
||||
JPEG = 2;
|
||||
WEBP = 3;
|
||||
GIF = 4;
|
||||
}
|
||||
}
|
||||
|
||||
message AudioMessage {
|
||||
|
|
|
@ -9,4 +9,12 @@ enum MessageType {
|
|||
PRIVATE_GROUP = 3;
|
||||
// Only local
|
||||
SYSTEM_MESSAGE_PRIVATE_GROUP = 4;
|
||||
}
|
||||
}
|
||||
|
||||
enum ImageType {
|
||||
UNKNOWN_IMAGE_TYPE = 0;
|
||||
PNG = 1;
|
||||
JPEG = 2;
|
||||
WEBP = 3;
|
||||
GIF = 4;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue