How to update ChatClient#getCurrentUser instance after changing user mutes? #1686
Replies: 4 comments
-
Hello @rupinderjeet If you are using only our Low Level Client ( If you are using our Offline Support SDK ( |
Beta Was this translation helpful? Give feedback.
-
Ah, I was missing this then. I will try it tomorrow morning, thanks. |
Beta Was this translation helpful? Give feedback.
-
There is also chatDomain.muted: https://getstream.io/chat/docs/android/android_offline/?language=kotlin#building-the-chatdomain |
Beta Was this translation helpful? Give feedback.
-
Hello @JcMinarro @tschellenbach Is there any upper limit on how many users/channels I can mute? If I mute 1000 users, will I get them all in the user returned by My current usecase is just that I have to check if a target user is muted by me so that I can show proper options UI for user-profile. So, I think observing
I am just worried that carrying limitless user-instances for mutes in currentUser can lead to some kind of overhead. If I am wrong, then I guess I will start using it as it is. |
Beta Was this translation helpful? Give feedback.
-
From docs, user mutes and channel mutes are only received as a list when I connect a user. After that if I change these mutes, they are received in notification events i.e.
NotificationMutesUpdatedEvent
,NotificationChannelMutesUpdatedEvent
. But, these changes aren't reflected inChatClient.instance().getCurrentUser()
. Doesn't it make this instance of current-user unreliable?Is this intentional? If so, only way to handle it should be some sort of database. Have I understood this correctly?
Also, is there any limit on how many users/channels I can mute? If I mute 1000 users, will I get them all in the
user
returned byChatClient#connectUser()
method?And, can I rely on
NotificationMutesUpdatedEvent
event to have list of all the mutes? In this case, I will just replace all db entries of mutes I have locally available.Beta Was this translation helpful? Give feedback.
All reactions