github.com/status-im/status-go@v1.1.0/protocol/protobuf/emoji_reaction.proto (about)

     1  syntax = "proto3";
     2  
     3  option go_package = "./;protobuf";
     4  package protobuf;
     5  
     6  import "enums.proto";
     7  
     8  message EmojiReaction {
     9    // clock Lamport timestamp of the chat message
    10    uint64 clock = 1;
    11  
    12    // chat_id the ID of the chat the message belongs to, for query efficiency the chat_id is stored in the db even though the
    13    // target message also stores the chat_id
    14    string chat_id = 2;
    15  
    16    // message_id the ID of the target message that the user wishes to react to
    17    string message_id = 3;
    18  
    19    // message_type is (somewhat confusingly) the ID of the type of chat the message belongs to
    20    MessageType message_type = 4;
    21  
    22    // type the ID of the emoji the user wishes to react with
    23    Type type = 5;
    24  
    25    enum Type {
    26      UNKNOWN_EMOJI_REACTION_TYPE = 0;
    27      LOVE = 1;
    28      THUMBS_UP = 2;
    29      THUMBS_DOWN = 3;
    30      LAUGH = 4;
    31      SAD = 5;
    32      ANGRY = 6;
    33    }
    34  
    35   // whether this is a rectraction of a previously sent emoji
    36    bool retracted = 6;
    37  
    38    // Grant for organisation chat messages
    39    bytes grant = 7 [deprecated = true];
    40  }