mirror of
https://github.com/status-im/status-go.git
synced 2025-01-09 06:12:55 +00:00
ba5ed725ce
- use protected topics for communities - associate chats to pubsub topics and populate these depending if the chat belongs to a community or not - mailserver functions should be aware of pubsub topics - generate private key for pubsub topic protection when creating a community - add shard cluster and index to communities - setup shards for existing communities - distribute pubsubtopic password - fix: do not send the requests to join and cancel in the protected topic - fix: undefined shard values for backward compatibility - refactor: use shard message in protobuffers
36 lines
583 B
Protocol Buffer
36 lines
583 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
option go_package = "./;protobuf";
|
|
package protobuf;
|
|
|
|
import "shard.proto";
|
|
|
|
message Community {
|
|
string display_name = 1;
|
|
string description = 2;
|
|
uint32 members_count = 3;
|
|
string color = 4;
|
|
repeated uint32 tag_indices = 5;
|
|
}
|
|
|
|
message Channel {
|
|
string display_name = 1;
|
|
string description = 2;
|
|
string emoji = 3;
|
|
string color = 4;
|
|
Community community = 5;
|
|
string uuid = 6;
|
|
}
|
|
|
|
message User {
|
|
string display_name = 1;
|
|
string description = 2;
|
|
string color = 3;
|
|
}
|
|
|
|
message URLData {
|
|
// Community, Channel, or User
|
|
bytes content = 1;
|
|
Shard shard = 2;
|
|
}
|