You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to hide a user profile image from the Suggested Mentions list?
Guide & Snippet
The SuggestedMentionList is managed by the InputComponent of the GroupChannelModule.
Therefore, to hide the user profile image, you can create a CustomSuggestedMentionList by inheriting from SBUSuggestedMentionList and hide the user image of the cell in this class.
Then, create a CustomInputComponent that changes the behavior of the InputComponent to use this custom class and apply it to your module set.
The logic below is a custom snippet with a simple example.
Create a CustomSuggestedMentionList class that inherits from SBUSuggestedMentionList.
Override the configureCell method to make the userImageView hidden.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Summary
Guide & Snippet
SuggestedMentionList
is managed by theInputComponent
of theGroupChannelModule
.CustomSuggestedMentionList
by inheriting fromSBUSuggestedMentionList
and hide the user image of the cell in this class.CustomInputComponent
that changes the behavior of theInputComponent
to use this custom class and apply it to your module set.The logic below is a custom snippet with a simple example.
Create a
CustomSuggestedMentionList
class that inherits fromSBUSuggestedMentionList
.userImageView
hidden.SBUGroupChannelModule.Input
, inherit from this class to create aCustomGroupChannelModule.Input
class.CustomGroupChannelModule.Input
class is configured to put aCustomSuggestedMentionList
in the inputComponent.SBUModuleSet
.Result
Reference
Beta Was this translation helpful? Give feedback.
All reactions