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
@@ -156,6 +156,7 @@ class CreateRoomViewModel: CreateRoomViewModelType, CreateRoomViewModelProtocol
userIDs: state.selectedUsers.map(\.userID),
avatarURL: avatarURL) {
case .success(let roomId):
ServiceLocator.shared.analytics.trackCreatedRoom(isDM: false)
actionsSubject.send(.openRoom(withIdentifier: roomId))
case .failure(let failure):
displayError(failure)