Skip to content
This repository has been archived by the owner on Oct 2, 2021. It is now read-only.

Commit

Permalink
Add additional data & type
Browse files Browse the repository at this point in the history
  • Loading branch information
RooyeKhat committed Dec 8, 2018
1 parent 0ffa0b5 commit f919416
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/assets/proto/ChannelSendMessage.proto
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ message ChannelSendMessage {
uint64 reply_to = 8;
RoomMessageForwardFrom forward_from = 9;
uint64 random_id = 10;

uint32 additional_type = 11;
string additional_data = 12;
}

message ChannelSendMessageResponse {
Expand Down
3 changes: 3 additions & 0 deletions app/assets/proto/ChatSendMessage.proto
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ message ChatSendMessage {
uint64 reply_to = 8;
RoomMessageForwardFrom forward_from = 9;
uint64 random_id = 10;

uint32 additional_type = 11;
string additional_data = 12;
}

message ChatSendMessageResponse {
Expand Down
3 changes: 3 additions & 0 deletions app/assets/proto/Global.proto
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,9 @@ message RoomMessage {
uint64 previous_message_id = 18;
uint64 random_id = 21;

uint32 additional_type = 23;
string additional_data = 24;

enum ExtraType {
NO_EXTRA = 0;
CHANNEL_EXTRA = 1;
Expand Down
3 changes: 3 additions & 0 deletions app/assets/proto/GroupSendMessage.proto
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ message GroupSendMessage {
uint64 reply_to = 8;
RoomMessageForwardFrom forward_from = 9;
uint64 random_id = 10;

uint32 additional_type = 11;
string additional_data = 12;
}

message GroupSendMessageResponse {
Expand Down
6 changes: 6 additions & 0 deletions docs/guide/v1/error/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1423,6 +1423,8 @@ Bad payload for request [#201](../proto/README.md#action_201)
| 31 | Attachment is invalid | * |
| 32 | **Message is too long** | * |
| 33 | Random id is invalid | * |
| 34 | additional_type is invalid | * |
| 35 | additional_data invalid | * |

### Error 204 - CHAT_SEND_MESSAGE_INTERNAL_SERVER_ERROR
Internal server error for request [#201](../proto/README.md#action_201)
Expand Down Expand Up @@ -1796,6 +1798,8 @@ Bad payload for request [#310](../proto/README.md#action_310)
| 31 | Attachment is invalid | * |
| 32 | **Message is too long** | * |
| 33 | Random id is invalid | * |
| 34 | additional_type is invalid | * |
| 35 | additional_data invalid | * |


### Error 307 - GROUP_SEND_MESSAGE_INTERNAL_SERVER_ERROR
Expand Down Expand Up @@ -2507,6 +2511,8 @@ Bad payload for request [#410](../proto/README.md#action_410)
| 31 | Attachment is invalid | * |
| 32 | **Message is too long** | * |
| 33 | Random id is invalid | * |
| 34 | additional_type is invalid | * |
| 35 | additional_data invalid | * |


### Error 407 - CHANNEL_SEND_MESSAGE_INTERNAL_SERVER_ERROR
Expand Down

0 comments on commit f919416

Please sign in to comment.