Skip to content

Commit

Permalink
Fix incoming invite filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
abdulajet committed May 14, 2024
1 parent afb01ef commit 4ae923b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client-ios/Vapp.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@
repositoryURL = "https://github.com/Vonage/vonage-client-sdk-ios";
requirement = {
kind = exactVersion;
version = 1.5.1;
version = 1.6.0;
};
};
/* End XCRemoteSwiftPackageReference section */
Expand Down
2 changes: 1 addition & 1 deletion client-ios/Vapp/Home/HomeViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ final class HomeViewModel: ObservableObject {
clientManager.onEvent
.receive(on: DispatchQueue.main)
.filter { $0.kind == .memberInvited }
.filter { !($0.from is VGSystem) }
.map { $0 as! VGMemberInvitedEvent }
.filter { $0.body.channel.id == nil }
.sink { [weak self] event in
guard event.body.user.name == self?.clientManager.user?.name else { return }
self?.incomingConversationId = event.conversationId
Expand Down

0 comments on commit 4ae923b

Please sign in to comment.