New emoji field
This commit is contained in:
parent
5609c9540d
commit
9c2ee46db0
|
@ -22,6 +22,8 @@ message ChatIdentity {
|
|||
string description = 5;
|
||||
|
||||
string color = 6;
|
||||
|
||||
string emoji = 7;
|
||||
}
|
||||
|
||||
// ProfileImage represents data associated with a user's profile image
|
||||
|
|
|
@ -22,6 +22,7 @@ export interface ChatIdentity {
|
|||
/** description is the user set description, valid only for organisations */
|
||||
description: string;
|
||||
color: string;
|
||||
emoji: string;
|
||||
}
|
||||
|
||||
export interface ChatIdentity_ImagesEntry {
|
||||
|
@ -98,6 +99,7 @@ const baseChatIdentity: object = {
|
|||
displayName: "",
|
||||
description: "",
|
||||
color: "",
|
||||
emoji: "",
|
||||
};
|
||||
|
||||
export const ChatIdentity = {
|
||||
|
@ -126,6 +128,9 @@ export const ChatIdentity = {
|
|||
if (message.color !== "") {
|
||||
writer.uint32(50).string(message.color);
|
||||
}
|
||||
if (message.emoji !== "") {
|
||||
writer.uint32(58).string(message.emoji);
|
||||
}
|
||||
return writer;
|
||||
},
|
||||
|
||||
|
@ -161,6 +166,9 @@ export const ChatIdentity = {
|
|||
case 6:
|
||||
message.color = reader.string();
|
||||
break;
|
||||
case 7:
|
||||
message.emoji = reader.string();
|
||||
break;
|
||||
default:
|
||||
reader.skipType(tag & 7);
|
||||
break;
|
||||
|
@ -202,6 +210,11 @@ export const ChatIdentity = {
|
|||
} else {
|
||||
message.color = "";
|
||||
}
|
||||
if (object.emoji !== undefined && object.emoji !== null) {
|
||||
message.emoji = String(object.emoji);
|
||||
} else {
|
||||
message.emoji = "";
|
||||
}
|
||||
return message;
|
||||
},
|
||||
|
||||
|
@ -220,6 +233,7 @@ export const ChatIdentity = {
|
|||
message.description !== undefined &&
|
||||
(obj.description = message.description);
|
||||
message.color !== undefined && (obj.color = message.color);
|
||||
message.emoji !== undefined && (obj.emoji = message.emoji);
|
||||
return obj;
|
||||
},
|
||||
|
||||
|
@ -258,6 +272,11 @@ export const ChatIdentity = {
|
|||
} else {
|
||||
message.color = "";
|
||||
}
|
||||
if (object.emoji !== undefined && object.emoji !== null) {
|
||||
message.emoji = object.emoji;
|
||||
} else {
|
||||
message.emoji = "";
|
||||
}
|
||||
return message;
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue