Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Display name is not returned #57

Open
oicramsilveira opened this issue Dec 1, 2017 · 1 comment
Open

Display name is not returned #57

oicramsilveira opened this issue Dec 1, 2017 · 1 comment

Comments

@oicramsilveira
Copy link

oicramsilveira commented Dec 1, 2017

The display name is not being returned in this code snippet :

       switch (activityType) {
            case TEXTMESSAGE:
                String remoteParticipantName;
                MessageActivityItem messageActivityItem = (MessageActivityItem)activityItem;
                itemContent = messageActivityItem.getText();

                // Register callback for DisplayName and URI
                messageActivityItem.getSender().addOnPropertyChangedCallback(holder.getPropertyChangeListener());
                remoteParticipantName = messageActivityItem.getSender().getDisplayName();

Could you guys confirm if there are another way to get the the participant name?
If we have more than two participants is it impossible to know who have send the message.

@dcchristopher
Copy link

The participant's name is supported in the web SDK but not the mobile SDKs, if I remember correctly. This is allegedly by design for anonymous join. Consider using named accounts if displaying the name is important. Using named accounts also opens the door to other great features.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants