Closed rboughani closed 6 years ago
This work
Set<SymUser> listuser2 = symphonyClient.getUsersClient().getUsersFromStream("CxuZRxk36vjJtWAdFRtzv3__?????==");//myStream.getStreamId().toString()
This is the correct way
List<SymStreamAttributes> listuser3 = symphonyClient.getStreamsClient().getStreams((Integer) 1, (Integer) 10, new SymStreamFilter());
for (SymStreamAttributes symStream : listuser3) {
sm = new Stream();
List<Long> listmembers = (symStream.getSymChatSpecificStreamAttributes() != null) ? symStream.getSymChatSpecificStreamAttributes().getMembers() : null;
for (Long userId : listmembers) {
if (userId != localUser.getUserId()) {
SymUser contact = symphonyClient.getUsersClient().getUserFromId(userId);
sm.setDisplayName(contact.getDisplayName());
sm.setId(contact.getId());
listSendedUser.add(sm);
}
}
}
return listSendedUser;
Is it possible to retrieve the list of users I chat with using symphonyoss dependency ? i use
I want to create a panel right of my page where I will display the list of all cats of the connected user, and when he clicks on a chat, a popup opens with the history of the discussion
i have found chat service, but got null at result with all our symphony users !
I'm sorry to post my message here, but on stackoverflow, I can not find a topic for symphony. https://stackoverflow.com/questions/52838699/symphonyoss-retrieve-the-list-of-users-i-chat-with