status-go/protocol/protobuf/group_chat_invitation.proto

26 lines
552 B
Protocol Buffer
Raw Permalink Normal View History

2020-08-07 13:49:37 +00:00
syntax = "proto3";
option go_package = "./;protobuf";
2020-08-07 13:49:37 +00:00
package protobuf;
message GroupChatInvitation {
// clock Lamport timestamp of the chat message
uint64 clock = 1;
// chat_id the ID of the private group chat the message belongs to, for query efficiency the chat_id is stored in the db even though the
// target message also stores the chat_id
string chat_id = 2;
string introduction_message = 3;
// state of invitation
State state = 4;
enum State {
UNKNOWN = 0;
REQUEST = 1;
REJECTED = 2;
APPROVED = 3;
}
}