From 3f231f53e3ee01cbda202fdd95b33af4be67f49b Mon Sep 17 00:00:00 2001 From: Pascal Precht <445106+0x-r4bbit@users.noreply.github.com> Date: Fri, 9 Jun 2023 11:50:25 +0200 Subject: [PATCH] Ensure `ChatIds` are handled by token permission requests --- protocol/requests/create_community_token_permission_request.go | 2 ++ protocol/requests/edit_community_token_permission_request.go | 1 + 2 files changed, 3 insertions(+) diff --git a/protocol/requests/create_community_token_permission_request.go b/protocol/requests/create_community_token_permission_request.go index b6c445bcb..10389feb4 100644 --- a/protocol/requests/create_community_token_permission_request.go +++ b/protocol/requests/create_community_token_permission_request.go @@ -22,6 +22,7 @@ type CreateCommunityTokenPermission struct { Type protobuf.CommunityTokenPermission_Type `json:"type"` TokenCriteria []*protobuf.TokenCriteria `json:"tokenCriteria"` IsPrivate bool `json:"isPrivate"` + ChatIds []string `json:"chat_ids"` } func (p *CreateCommunityTokenPermission) Validate() error { @@ -56,5 +57,6 @@ func (p *CreateCommunityTokenPermission) ToCommunityTokenPermission() protobuf.C Type: p.Type, TokenCriteria: p.TokenCriteria, IsPrivate: p.IsPrivate, + ChatIds: p.ChatIds, } } diff --git a/protocol/requests/edit_community_token_permission_request.go b/protocol/requests/edit_community_token_permission_request.go index 932e339d3..1918c5f4f 100644 --- a/protocol/requests/edit_community_token_permission_request.go +++ b/protocol/requests/edit_community_token_permission_request.go @@ -28,5 +28,6 @@ func (u *EditCommunityTokenPermission) ToCommunityTokenPermission() protobuf.Com Id: u.PermissionID, Type: u.Type, TokenCriteria: u.TokenCriteria, + ChatIds: u.ChatIds, } }