Update some enum values

This commit is contained in:
Tulir Asokan 2023-07-09 23:59:22 +03:00
parent b4103e9ba8
commit 0d334623e8
2 changed files with 68 additions and 50 deletions

View file

@ -110,10 +110,10 @@ const (
MessageStatusType_INCOMING_DOWNLOAD_FAILED_SIM_HAS_NO_DATA MessageStatusType = 112
MessageStatusType_INCOMING_FAILED_TO_DECRYPT MessageStatusType = 113
MessageStatusType_INCOMING_DECRYPTION_ABORTED MessageStatusType = 114
// TOMBSTONE_PARTICIPANT_JOINED = BasePaymentResult.ERROR_REQUEST_FAILED;
// TOMBSTONE_PARTICIPANT_LEFT = BasePaymentResult.ERROR_REQUEST_TIMEOUT;
// TOMBSTONE_SELF_LEFT = BasePaymentResult.ERROR_REQUEST_CONNECTION_FAILED;
// TOMBSTONE_RCS_GROUP_CREATED = BasePaymentResult.ERROR_BOT_DOMAIN_NOT_WHITELISTED;
MessageStatusType_TOMBSTONE_PARTICIPANT_JOINED MessageStatusType = 200
MessageStatusType_TOMBSTONE_PARTICIPANT_LEFT MessageStatusType = 201
MessageStatusType_TOMBSTONE_SELF_LEFT MessageStatusType = 202
MessageStatusType_TOMBSTONE_RCS_GROUP_CREATED MessageStatusType = 203
MessageStatusType_TOMBSTONE_MMS_GROUP_CREATED MessageStatusType = 204
MessageStatusType_TOMBSTONE_SMS_BROADCAST_CREATED MessageStatusType = 205
MessageStatusType_TOMBSTONE_ONE_ON_ONE_SMS_CREATED MessageStatusType = 206
@ -194,6 +194,10 @@ var (
112: "INCOMING_DOWNLOAD_FAILED_SIM_HAS_NO_DATA",
113: "INCOMING_FAILED_TO_DECRYPT",
114: "INCOMING_DECRYPTION_ABORTED",
200: "TOMBSTONE_PARTICIPANT_JOINED",
201: "TOMBSTONE_PARTICIPANT_LEFT",
202: "TOMBSTONE_SELF_LEFT",
203: "TOMBSTONE_RCS_GROUP_CREATED",
204: "TOMBSTONE_MMS_GROUP_CREATED",
205: "TOMBSTONE_SMS_BROADCAST_CREATED",
206: "TOMBSTONE_ONE_ON_ONE_SMS_CREATED",
@ -271,6 +275,10 @@ var (
"INCOMING_DOWNLOAD_FAILED_SIM_HAS_NO_DATA": 112,
"INCOMING_FAILED_TO_DECRYPT": 113,
"INCOMING_DECRYPTION_ABORTED": 114,
"TOMBSTONE_PARTICIPANT_JOINED": 200,
"TOMBSTONE_PARTICIPANT_LEFT": 201,
"TOMBSTONE_SELF_LEFT": 202,
"TOMBSTONE_RCS_GROUP_CREATED": 203,
"TOMBSTONE_MMS_GROUP_CREATED": 204,
"TOMBSTONE_SMS_BROADCAST_CREATED": 205,
"TOMBSTONE_ONE_ON_ONE_SMS_CREATED": 206,
@ -3151,7 +3159,7 @@ var file_conversations_proto_rawDesc = []byte{
0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x19, 0x55,
0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x43, 0x4f, 0x4e, 0x56, 0x45, 0x52, 0x53, 0x41, 0x54,
0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x53, 0x4d,
0x53, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x52, 0x43, 0x53, 0x10, 0x02, 0x2a, 0xc2, 0x18, 0x0a,
0x53, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x52, 0x43, 0x53, 0x10, 0x02, 0x2a, 0xc2, 0x19, 0x0a,
0x11, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x54, 0x79,
0x70, 0x65, 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x4b,
0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x4f, 0x55, 0x54, 0x47, 0x4f, 0x49,
@ -3229,7 +3237,15 @@ var file_conversations_proto_rawDesc = []byte{
0x47, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x5f, 0x54, 0x4f, 0x5f, 0x44, 0x45, 0x43, 0x52,
0x59, 0x50, 0x54, 0x10, 0x71, 0x12, 0x1f, 0x0a, 0x1b, 0x49, 0x4e, 0x43, 0x4f, 0x4d, 0x49, 0x4e,
0x47, 0x5f, 0x44, 0x45, 0x43, 0x52, 0x59, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x41, 0x42, 0x4f,
0x52, 0x54, 0x45, 0x44, 0x10, 0x72, 0x12, 0x20, 0x0a, 0x1b, 0x54, 0x4f, 0x4d, 0x42, 0x53, 0x54,
0x52, 0x54, 0x45, 0x44, 0x10, 0x72, 0x12, 0x21, 0x0a, 0x1c, 0x54, 0x4f, 0x4d, 0x42, 0x53, 0x54,
0x4f, 0x4e, 0x45, 0x5f, 0x50, 0x41, 0x52, 0x54, 0x49, 0x43, 0x49, 0x50, 0x41, 0x4e, 0x54, 0x5f,
0x4a, 0x4f, 0x49, 0x4e, 0x45, 0x44, 0x10, 0xc8, 0x01, 0x12, 0x1f, 0x0a, 0x1a, 0x54, 0x4f, 0x4d,
0x42, 0x53, 0x54, 0x4f, 0x4e, 0x45, 0x5f, 0x50, 0x41, 0x52, 0x54, 0x49, 0x43, 0x49, 0x50, 0x41,
0x4e, 0x54, 0x5f, 0x4c, 0x45, 0x46, 0x54, 0x10, 0xc9, 0x01, 0x12, 0x18, 0x0a, 0x13, 0x54, 0x4f,
0x4d, 0x42, 0x53, 0x54, 0x4f, 0x4e, 0x45, 0x5f, 0x53, 0x45, 0x4c, 0x46, 0x5f, 0x4c, 0x45, 0x46,
0x54, 0x10, 0xca, 0x01, 0x12, 0x20, 0x0a, 0x1b, 0x54, 0x4f, 0x4d, 0x42, 0x53, 0x54, 0x4f, 0x4e,
0x45, 0x5f, 0x52, 0x43, 0x53, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x43, 0x52, 0x45, 0x41,
0x54, 0x45, 0x44, 0x10, 0xcb, 0x01, 0x12, 0x20, 0x0a, 0x1b, 0x54, 0x4f, 0x4d, 0x42, 0x53, 0x54,
0x4f, 0x4e, 0x45, 0x5f, 0x4d, 0x4d, 0x53, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x43, 0x52,
0x45, 0x41, 0x54, 0x45, 0x44, 0x10, 0xcc, 0x01, 0x12, 0x24, 0x0a, 0x1f, 0x54, 0x4f, 0x4d, 0x42,
0x53, 0x54, 0x4f, 0x4e, 0x45, 0x5f, 0x53, 0x4d, 0x53, 0x5f, 0x42, 0x52, 0x4f, 0x41, 0x44, 0x43,

View file

@ -226,6 +226,7 @@ enum ConversationType {
enum MessageStatusType {
STATUS_UNKNOWN = 0;
OUTGOING_COMPLETE = 1;
OUTGOING_DELIVERED = 2;
OUTGOING_DISPLAYED = 11;
@ -248,6 +249,7 @@ enum MessageStatusType {
OUTGOING_VALIDATING = 20;
OUTGOING_FAILED_RECIPIENT_LOST_ENCRYPTION = 21;
OUTGOING_FAILED_RECIPIENT_DID_NOT_DECRYPT_NO_MORE_RETRY = 22;
INCOMING_COMPLETE = 100;
INCOMING_YET_TO_MANUAL_DOWNLOAD = 101;
INCOMING_RETRYING_MANUAL_DOWNLOAD = 102;
@ -263,12 +265,11 @@ enum MessageStatusType {
INCOMING_DOWNLOAD_FAILED_SIM_HAS_NO_DATA = 112;
INCOMING_FAILED_TO_DECRYPT = 113;
INCOMING_DECRYPTION_ABORTED = 114;
/*
TOMBSTONE_PARTICIPANT_JOINED = BasePaymentResult.ERROR_REQUEST_FAILED;
TOMBSTONE_PARTICIPANT_LEFT = BasePaymentResult.ERROR_REQUEST_TIMEOUT;
TOMBSTONE_SELF_LEFT = BasePaymentResult.ERROR_REQUEST_CONNECTION_FAILED;
TOMBSTONE_RCS_GROUP_CREATED = BasePaymentResult.ERROR_BOT_DOMAIN_NOT_WHITELISTED;
*/
TOMBSTONE_PARTICIPANT_JOINED = 200;
TOMBSTONE_PARTICIPANT_LEFT = 201;
TOMBSTONE_SELF_LEFT = 202;
TOMBSTONE_RCS_GROUP_CREATED = 203;
TOMBSTONE_MMS_GROUP_CREATED = 204;
TOMBSTONE_SMS_BROADCAST_CREATED = 205;
TOMBSTONE_ONE_ON_ONE_SMS_CREATED = 206;
@ -305,6 +306,7 @@ enum MessageStatusType {
MESSAGE_STATUS_TOMBSTONE_PROTOCOL_SWITCH_RCS_TO_E2EE = 237;
MESSAGE_STATUS_TOMBSTONE_PROTOCOL_SWITCH_E2EE_TO_RCS = 238;
MESSAGE_STATUS_TOMBSTONE_SATELLITE_EDUCATION = 239;
MESSAGE_DELETED = 300;
}