Skip to content

Commit 43bbfc1

Browse files
committed
user: always return the ChatId for communicating with a twitter user.
1 parent 73c60b4 commit 43bbfc1

File tree

4 files changed

+122
-74
lines changed

4 files changed

+122
-74
lines changed

generated/go/user/v1/identity_service.pb.go

Lines changed: 92 additions & 73 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

generated/go/user/v1/identity_service.pb.validate.go

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

generated/protobuf-es/user/v1/identity_service_pb.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
77
import { Message, proto3 } from "@bufbuild/protobuf";
8-
import { DataContainerId, IntentId, Locale, PhoneNumber, Signature, SolanaAccountId, UserId } from "../../common/v1/model_pb";
8+
import { ChatId, DataContainerId, IntentId, Locale, PhoneNumber, Signature, SolanaAccountId, UserId } from "../../common/v1/model_pb";
99
import { PhoneLinkingToken } from "../../phone/v1/phone_verification_service_pb";
1010
import { AirdropType, ExchangeData } from "../../transaction/v2/transaction_service_pb";
1111

@@ -1251,6 +1251,17 @@ export class TwitterUser extends Message<TwitterUser> {
12511251
*/
12521252
isFriend = false;
12531253

1254+
/**
1255+
* The ChatId used to communicate with this friend.
1256+
*
1257+
* This will always be set for authenticated users.
1258+
* If is_friend=false, this ChatId should be used when crafting
1259+
* the intent.
1260+
*
1261+
* @generated from field: code.common.v1.ChatId friend_chat_id = 11;
1262+
*/
1263+
friendChatId?: ChatId;
1264+
12541265
constructor(data?: PartialMessage<TwitterUser>) {
12551266
super();
12561267
proto3.util.initPartial(data, this);
@@ -1267,6 +1278,7 @@ export class TwitterUser extends Message<TwitterUser> {
12671278
{ no: 6, name: "follower_count", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
12681279
{ no: 7, name: "friendship_cost", kind: "message", T: ExchangeData },
12691280
{ no: 10, name: "is_friend", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1281+
{ no: 11, name: "friend_chat_id", kind: "message", T: ChatId },
12701282
]);
12711283

12721284
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TwitterUser {

proto/user/v1/identity_service.proto

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,4 +386,11 @@ message TwitterUser {
386386

387387
// Indicates the user is a friend of the caller.
388388
bool is_friend = 10;
389+
390+
// The ChatId used to communicate with this friend.
391+
//
392+
// This will always be set for authenticated users.
393+
// If is_friend=false, this ChatId should be used when crafting
394+
// the intent.
395+
common.v1.ChatId friend_chat_id = 11;
389396
}

0 commit comments

Comments
 (0)