Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Cannot listen events for MXUser #1837

Open
kiryl09 opened this issue Dec 7, 2023 · 0 comments
Open

Cannot listen events for MXUser #1837

kiryl09 opened this issue Dec 7, 2023 · 0 comments

Comments

@kiryl09
Copy link

kiryl09 commented Dec 7, 2023

I try to listen events related to MXUser, like presence status. I used for this MXUser::listenToUserUpdate, but it doesn't work.

I spend a little time for investigation and found that mxUser.updateListeners is always nil, but must be, as minimum, empty muttable array.

ISSUE:

When MXUser initiated with initWithUserId: it works fine, but when initiated with initWithDecoder: we have a problem, because updateListeners is not initiated.

FIX:

Could you please fix it by adding following code in MXUser::initWithCoder in next version?

updateListeners = [NSMutableArray array];

Thank you.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant