Private Chats - chatUser (Document User)

Hi,

i am working on an football-score_tracker app for a while, which goes great. At the moment I am trying to implement the chat function (the template from FF) and wish to reach:

by pressing a button somewhere else in my app, such as:

Background: The data shown here is of a "random" player. A player can be"claimed by" an Authorised User (AU2) (thats not the Authorised User now logged in (=AU1) and I can show that (AU2) Users ID on this page if i wish it to.

Problem: I need to pass the Document (User) (AU2) in the variable for the chatUser parameter (see below). However the problem is that i would need to Query Collection the User Document (AU2), which results in a security breach in FireBase. Which makes sense, since you are not allowed to see this data (AU1 cant see/grab AU2 data).

FYI within the "players Document" you see above exists a field: AU2: /users/xxxxxxxxxxxxxxxxxxx, however this is a reference and not a document (User Document)

Anybody worked with this issue? I couldn't find any sort-like issues in this community as of yet, so looking forward to some help.

thanks

Daan

1