matrix-org / matrix-android-sdk

The Matrix SDK for Android - DEPRECATED
Apache License 2.0
370 stars 132 forks source link

problem in getting number of joined members in room #529

Open smacrs-development opened 4 years ago

smacrs-development commented 4 years ago

I have been in this issue for days, and I tried everything I know

here is the method that return always 0

`public int getNumberOfJoinedMembers() { if (getDataHandler().isLazyLoadingEnabled()) { RoomSummary roomSummary = getRoomSummary();

        if (roomSummary != null) {
            return roomSummary.getNumberOfJoinedMembers();
        } else {
            // Should not happen, fallback to loaded members
            return getNumberOfLoadedJoinedMembers();
        }
    } else {
        return getNumberOfLoadedJoinedMembers();
    }
}`

this method called when I try to make voice call

I have called all methods to make sure it loads room member and it loads it I tried

and all of them return correct data, but after that when I call createCallInRoom I always get error because number of joined members = 0

room summary is always = null

can anyone help please ?