Excluding current user from mention suggestions via ChatComponentFactory and ChatClient.getInstance().getCurrentUser() #5732
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
So we are trying to exclude the current user from being displayed in the mention popup UI, and we have achieved it by overriding
MessageComposerMentionsPopupContent
inChatComponentFactory
:However, after some inactivity,
ChatClient.getInstance().getCurrentUser()
becomes null, so the current user appears again in the mention suggestion UI. Is there anyway to get hold of a non-null current user?Beta Was this translation helpful? Give feedback.
All reactions