Add analytics tracking for room creation (#1100)

This commit is contained in:
Johannes Marbach
2023-06-19 14:35:58 +02:00
committed by GitHub
parent 1f65b7b9f9
commit ee643f7a69
6 changed files with 11 additions and 0 deletions
@@ -133,6 +133,7 @@ class StartChatScreenViewModel: StartChatScreenViewModelType, StartChatScreenVie
showLoadingIndicator()
switch await clientProxy.createDirectRoom(with: user.userID, expectedRoomName: user.displayName) {
case .success(let roomId):
ServiceLocator.shared.analytics.trackCreatedRoom(isDM: true)
actionsSubject.send(.openRoom(withIdentifier: roomId))
case .failure(let failure):
displayError(failure)