New emoji field

This commit is contained in:
Franck Royer 2021-10-19 11:25:02 +11:00
parent 5609c9540d
commit 9c2ee46db0
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
2 changed files with 21 additions and 0 deletions

View File

@ -22,6 +22,8 @@ message ChatIdentity {
string description = 5; string description = 5;
string color = 6; string color = 6;
string emoji = 7;
} }
// ProfileImage represents data associated with a user's profile image // ProfileImage represents data associated with a user's profile image

View File

@ -22,6 +22,7 @@ export interface ChatIdentity {
/** description is the user set description, valid only for organisations */ /** description is the user set description, valid only for organisations */
description: string; description: string;
color: string; color: string;
emoji: string;
} }
export interface ChatIdentity_ImagesEntry { export interface ChatIdentity_ImagesEntry {
@ -98,6 +99,7 @@ const baseChatIdentity: object = {
displayName: "", displayName: "",
description: "", description: "",
color: "", color: "",
emoji: "",
}; };
export const ChatIdentity = { export const ChatIdentity = {
@ -126,6 +128,9 @@ export const ChatIdentity = {
if (message.color !== "") { if (message.color !== "") {
writer.uint32(50).string(message.color); writer.uint32(50).string(message.color);
} }
if (message.emoji !== "") {
writer.uint32(58).string(message.emoji);
}
return writer; return writer;
}, },
@ -161,6 +166,9 @@ export const ChatIdentity = {
case 6: case 6:
message.color = reader.string(); message.color = reader.string();
break; break;
case 7:
message.emoji = reader.string();
break;
default: default:
reader.skipType(tag & 7); reader.skipType(tag & 7);
break; break;
@ -202,6 +210,11 @@ export const ChatIdentity = {
} else { } else {
message.color = ""; message.color = "";
} }
if (object.emoji !== undefined && object.emoji !== null) {
message.emoji = String(object.emoji);
} else {
message.emoji = "";
}
return message; return message;
}, },
@ -220,6 +233,7 @@ export const ChatIdentity = {
message.description !== undefined && message.description !== undefined &&
(obj.description = message.description); (obj.description = message.description);
message.color !== undefined && (obj.color = message.color); message.color !== undefined && (obj.color = message.color);
message.emoji !== undefined && (obj.emoji = message.emoji);
return obj; return obj;
}, },
@ -258,6 +272,11 @@ export const ChatIdentity = {
} else { } else {
message.color = ""; message.color = "";
} }
if (object.emoji !== undefined && object.emoji !== null) {
message.emoji = object.emoji;
} else {
message.emoji = "";
}
return message; return message;
}, },
}; };