Skip to content

Commit

Permalink
Merge pull request #15 from sendbird/release/3.9.1
Browse files Browse the repository at this point in the history
3.9.1
  • Loading branch information
sendbird-sdk-deployment authored Sep 26, 2023
2 parents 27eff38 + af866a9 commit 53c39e9
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Changelog
### v3.9.1 (Sep 26, 2023) with Chat SDK `v4.12.1`
* Fixed a problem with the user mentions feature in ThreadFragment
* Filter deactivated users from the user mentions list.
### v3.9.0 (Sep 22, 2023) with Chat SDK `v4.12.1`
* Support Multiple files message
* Added `setEnableMultipleFilesMessage(boolean)`, `getEnableMultipleFilesMessage()` in `ChannelConfig`.
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ org.gradle.jvmargs=-Xmx1536m
# https://developer.android.com/topic/libraries/support-library/androidx-rn
android.useAndroidX=true

UIKIT_VERSION = 3.9.0
UIKIT_VERSION = 3.9.1
UIKIT_VERSION_CODE = 1
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ abstract public class BaseMessageListViewModel extends BaseViewModel implements
@NonNull
private final String channelUrl;
@Nullable
private MemberFinder memberFinder;
MemberFinder memberFinder;
@NonNull
final MessageList cachedMessages = new MessageList();
@NonNull
Expand Down
2 changes: 2 additions & 0 deletions uikit/src/main/java/com/sendbird/uikit/vm/MemberFinder.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ private List<User> getFilteredMembers(@NonNull GroupChannel channel, @NonNull St
if (SendbirdUIKit.getAdapter() != null) {
final String myUserId = SendbirdUIKit.getAdapter().getUserInfo().getUserId();
for (Member member : members) {
if (!member.isActive()) continue;
final String nickname = member.getNickname();
if (nickname.toLowerCase().startsWith(nicknameStartWith.toLowerCase()) && !myUserId.equalsIgnoreCase(member.getUserId())) {
if (filteredList.size() >= maxMemberCount) {
Expand Down Expand Up @@ -135,6 +136,7 @@ private List<User> getFilteredMembers(@NonNull MemberListQuery query) throws Exc
if (SendbirdUIKit.getAdapter() != null) {
final String myUserId = SendbirdUIKit.getAdapter().getUserInfo().getUserId();
for (Member member : results.get()) {
if (!member.isActive()) continue;
if (!myUserId.equalsIgnoreCase(member.getUserId())) {
if (filteredList.size() >= maxSuggestionCount) {
return filteredList;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ public void authenticate(@NonNull AuthenticateHandler handler) {
if (e1 != null || channel == null) {
handler.onAuthenticationFailed();
} else {
this.memberFinder = new MemberFinder(channel, SendbirdUIKit.getUserMentionConfig());
prepareThreadViewModel(channel, e2 -> {
if (e2 != null) {
handler.onAuthenticationFailed();
Expand Down

0 comments on commit 53c39e9

Please sign in to comment.