Moved ImageType enum to enums.proto

This commit is contained in:
Samuel Hawksby-Robinson 2020-09-29 13:38:52 +01:00 committed by Andrea Maria Piana
parent f1f409c209
commit 6c4eea2a6b
3 changed files with 11 additions and 9 deletions

View File

@ -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;
}
}

View File

@ -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 {

View File

@ -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;
}