Rocket.Chat.iOS icon indicating copy to clipboard operation
Rocket.Chat.iOS copied to clipboard

[NEW] User list in channel

Open TheReal1604 opened this issue 9 years ago • 6 comments

image

There is a need for a list of online / offline users who joined the channel

TheReal1604 avatar Feb 15 '17 18:02 TheReal1604

@TheReal1604 The back-end guys are changing the API, so this will take a bit longer.

rafaelks avatar Mar 23 '17 12:03 rafaelks

@rafaelks some news from the backend guys?

TheReal1604 avatar Sep 11 '17 17:09 TheReal1604

Yes, we already have the REST API for that.

rafaelks avatar Sep 11 '17 21:09 rafaelks

Hi @rafaelks Can u share the API details to get user list

Jamirkhan50 avatar May 23 '18 10:05 Jamirkhan50

I am not able to get the list of users under channel. It gives following warning to me when i run the info API. "developerWarning=[WARNING]: The "usernames" field has been removed for performance reasons. Please use the "*.members" endpoint to get a list of members/users in a room"

Jamirkhan50 avatar May 23 '18 10:05 Jamirkhan50

@Jamirkhan50 These are the APIs that we're using:

fileprivate extension SubscriptionType {
    var path: String {
        switch self {
        case .channel:
            return "/api/v1/channels.members"
        case .group:
            return "/api/v1/groups.members"
        case .directMessage:
            return "/api/v1/dm.members"
        }
    }
}

rafaelks avatar May 25 '18 14:05 rafaelks