Skip to content

Commit

Permalink
update target_uid in friends.getMutual
Browse files Browse the repository at this point in the history
  • Loading branch information
1dNDN committed Nov 11, 2023
1 parent 53f6ca1 commit dcb1059
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions VkNet/Categories/FriendsCategory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,19 +104,14 @@ public FriendOnline GetOnline(FriendsGetOnlineParams @params)
/// <inheritdoc />
public ReadOnlyCollection<MutualFriend> GetMutual(FriendsGetMutualParams @params)
{
if (@params.TargetUid.HasValue)
{
@params.TargetUids = new[]
{
@params.TargetUid.Value
};
}

return _vk.Call<ReadOnlyCollection<MutualFriend>>("friends.getMutual", new()
{
{
"source_uid", @params.SourceUid
},
{
"target_uid", @params.TargetUid
},
{
"target_uids", @params.TargetUids
},
Expand Down

0 comments on commit dcb1059

Please sign in to comment.