mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-10 21:39:12 +00:00
Add voice message analytics
This commit is contained in:
parent
530985e674
commit
4985d410b3
@ -6648,7 +6648,7 @@
|
|||||||
repositoryURL = "https://github.com/matrix-org/matrix-analytics-events";
|
repositoryURL = "https://github.com/matrix-org/matrix-analytics-events";
|
||||||
requirement = {
|
requirement = {
|
||||||
kind = upToNextMinorVersion;
|
kind = upToNextMinorVersion;
|
||||||
minimumVersion = 0.8.0;
|
minimumVersion = 0.9.0;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
C13F55E4518415CB4C278E73 /* XCRemoteSwiftPackageReference "DTCoreText" */ = {
|
C13F55E4518415CB4C278E73 /* XCRemoteSwiftPackageReference "DTCoreText" */ = {
|
||||||
|
@ -121,8 +121,8 @@
|
|||||||
"kind" : "remoteSourceControl",
|
"kind" : "remoteSourceControl",
|
||||||
"location" : "https://github.com/matrix-org/matrix-analytics-events",
|
"location" : "https://github.com/matrix-org/matrix-analytics-events",
|
||||||
"state" : {
|
"state" : {
|
||||||
"revision" : "e9cd9adaf18cec52ed851395eb84358b4f9b8d7f",
|
"revision" : "aa14cbcdf81af2746d20a71779ec751f971e1d7f",
|
||||||
"version" : "0.8.0"
|
"version" : "0.9.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -263,7 +263,7 @@
|
|||||||
{
|
{
|
||||||
"identity" : "swiftui-introspect",
|
"identity" : "swiftui-introspect",
|
||||||
"kind" : "remoteSourceControl",
|
"kind" : "remoteSourceControl",
|
||||||
"location" : "https://github.com/siteline/SwiftUI-Introspect",
|
"location" : "https://github.com/siteline/SwiftUI-Introspect.git",
|
||||||
"state" : {
|
"state" : {
|
||||||
"revision" : "b94da693e57eaf79d16464b8b7c90d09cba4e290",
|
"revision" : "b94da693e57eaf79d16464b8b7c90d09cba4e290",
|
||||||
"version" : "0.9.2"
|
"version" : "0.9.2"
|
||||||
|
@ -1001,6 +1001,12 @@ class RoomScreenViewModel: RoomScreenViewModelType, RoomScreenViewModelProtocol
|
|||||||
displayError(.alert(L10n.errorFailedUploadingVoiceMessage))
|
displayError(.alert(L10n.errorFailedUploadingVoiceMessage))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
analytics.trackComposer(inThread: false,
|
||||||
|
isEditing: false,
|
||||||
|
isReply: false,
|
||||||
|
messageType: .voiceMessage,
|
||||||
|
startsThread: nil)
|
||||||
|
|
||||||
actionsSubject.send(.composer(action: .setMode(mode: .previewVoiceMessage(state: audioPlayerState, waveform: .url(recordingURL), isUploading: true))))
|
actionsSubject.send(.composer(action: .setMode(mode: .previewVoiceMessage(state: audioPlayerState, waveform: .url(recordingURL), isUploading: true))))
|
||||||
await voiceMessageRecorder.stopPlayback()
|
await voiceMessageRecorder.stopPlayback()
|
||||||
|
@ -20,6 +20,7 @@ enum AnalyticsMessageType {
|
|||||||
case location(LocationType)
|
case location(LocationType)
|
||||||
case poll
|
case poll
|
||||||
case text
|
case text
|
||||||
|
case voiceMessage
|
||||||
|
|
||||||
enum LocationType {
|
enum LocationType {
|
||||||
case pin
|
case pin
|
||||||
@ -36,6 +37,8 @@ extension AnalyticsEvent.Composer.MessageType {
|
|||||||
self = .Poll
|
self = .Poll
|
||||||
case .text:
|
case .text:
|
||||||
self = .Text
|
self = .Text
|
||||||
|
case .voiceMessage:
|
||||||
|
self = .VoiceMessage
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -53,7 +53,7 @@ packages:
|
|||||||
# path: ../compound-ios
|
# path: ../compound-ios
|
||||||
AnalyticsEvents:
|
AnalyticsEvents:
|
||||||
url: https://github.com/matrix-org/matrix-analytics-events
|
url: https://github.com/matrix-org/matrix-analytics-events
|
||||||
minorVersion: 0.8.0
|
minorVersion: 0.9.0
|
||||||
Emojibase:
|
Emojibase:
|
||||||
url: https://github.com/matrix-org/emojibase-bindings
|
url: https://github.com/matrix-org/emojibase-bindings
|
||||||
minorVersion: 1.0.0
|
minorVersion: 1.0.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user