question

max avatar image
max asked

Server API - Removing all Friends tag does not work (does nothing)

We tried to call SetFriendTags on the server API with an empty array, but it does not delete all friend tags, but does indeed nothing. Below you can find the code we used for testing. We do now detect whether all tags should be deleted and then we set the tag "EMPTY" to remove all tags, but the new empty tag.

export function SetFriendTags(localPlayerPlayFabId: string, friendPlayFabId: string, tags: string[])
    {
        if (tags.length === 0)
        {
            tags = ["EMPTY"];
        }   
        server.SetFriendTags({
            FriendPlayFabId: friendPlayFabId,
            PlayFabId: localPlayerPlayFabId,
            Tags: tags
        })
    } 
Friends
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
pfnathan avatar image
pfnathan answered

We were able to reproduce the issue and filed a bug report. We will inform you once the issue gets fixed. Thank you

3 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

John Peterson avatar image John Peterson commented ·

Is there any ETA on fixing this bug?

0 Likes 0 ·
Andy avatar image Andy ♦♦ John Peterson commented ·

No ETA, but it looks like it may have gotten lost in the acquisition shuffle early this year. I rehydrated the bug so it will back in for triage.

0 Likes 0 ·
Andy avatar image Andy ♦♦ Andy ♦♦ commented ·

In the interim, you can clear tags by removing the friend and re-adding.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Error rendering WebPanel (widgets/consolidation-widget.ftl): org.hibernate.hql.internal.ast.QuerySyntaxException: AvailableConsolidation is not mapped [from AvailableConsolidation up where up.node = :node]