Skip to content

Commit

Permalink
chore: wait for isSelfATeamMember when setting up Analytics - (WPB-89…
Browse files Browse the repository at this point in the history
…78) (#3258)

Signed-off-by: alexandreferris <[email protected]>
  • Loading branch information
alexandreferris authored Jul 31, 2024
1 parent af906f5 commit bd07441
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/src/main/kotlin/com/wire/android/WireApplication.kt
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ class WireApplication : BaseApp() {
val analyticsResultFlow = ObserveCurrentSessionAnalyticsUseCase(
currentSessionFlow = coreLogic.get().getGlobalScope().session.currentSessionFlow(),
isUserTeamMember = {
coreLogic.get().getSessionScope(it).syncManager.waitUntilLive()
coreLogic.get().getSessionScope(it).team.isSelfATeamMember()
},
observeAnalyticsTrackingIdentifierStatusFlow = {
Expand Down

0 comments on commit bd07441

Please sign in to comment.