It's actually communities v1

This commit is contained in:
Franck Royer 2021-09-23 11:29:00 +10:00
parent 6baf953e98
commit 5dd482be11
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
5 changed files with 9 additions and 9 deletions

View File

@ -1,8 +1,8 @@
syntax = "proto3"; syntax = "proto3";
package communities.v2; package communities.v1;
import "communities/v2/enums.proto"; import "communities/v1/enums.proto";
message StickerMessage { message StickerMessage {
string hash = 1; string hash = 1;

View File

@ -1,6 +1,6 @@
syntax = "proto3"; syntax = "proto3";
package communities.v2; package communities.v1;
enum MessageType { enum MessageType {
MESSAGE_TYPE_UNKNOWN_UNSPECIFIED = 0; MESSAGE_TYPE_UNKNOWN_UNSPECIFIED = 0;

View File

@ -1,8 +1,8 @@
import { Reader } from "protobufjs"; import { Reader } from "protobufjs";
import * as proto from "./proto/communities/v2/chat_message"; import * as proto from "./proto/communities/v1/chat_message";
import { ChatMessage_ContentType } from "./proto/communities/v2/chat_message"; import { ChatMessage_ContentType } from "./proto/communities/v1/chat_message";
import { MessageType } from "./proto/communities/v2/enums"; import { MessageType } from "./proto/communities/v1/enums";
export class ChatMessage { export class ChatMessage {
private constructor(public proto: proto.ChatMessage) {} private constructor(public proto: proto.ChatMessage) {}

View File

@ -8,9 +8,9 @@ import {
imageTypeToJSON, imageTypeToJSON,
messageTypeFromJSON, messageTypeFromJSON,
messageTypeToJSON, messageTypeToJSON,
} from "../../communities/v2/enums"; } from "../../communities/v1/enums";
export const protobufPackage = "communities.v2"; export const protobufPackage = "communities.v1";
export interface StickerMessage { export interface StickerMessage {
hash: string; hash: string;

View File

@ -2,7 +2,7 @@
import Long from "long"; import Long from "long";
import _m0 from "protobufjs/minimal"; import _m0 from "protobufjs/minimal";
export const protobufPackage = "communities.v2"; export const protobufPackage = "communities.v1";
export enum MessageType { export enum MessageType {
MESSAGE_TYPE_UNKNOWN_UNSPECIFIED = 0, MESSAGE_TYPE_UNKNOWN_UNSPECIFIED = 0,