Fixed some issues with voice messages when sent from a bridge. (#2190)

This commit is contained in:
Nicolas Mauri
2023-11-30 17:39:54 +01:00
committed by GitHub
parent 9d9cf1c5a1
commit edbac5fe85
7 changed files with 47 additions and 6 deletions
@@ -438,6 +438,11 @@ class AudioPlayerMock: AudioPlayerProtocol {
}
var underlyingActions: AnyPublisher<AudioPlayerAction, Never>!
var mediaSource: MediaSourceProxy?
var duration: TimeInterval {
get { return underlyingDuration }
set(value) { underlyingDuration = value }
}
var underlyingDuration: TimeInterval!
var currentTime: TimeInterval {
get { return underlyingCurrentTime }
set(value) { underlyingCurrentTime = value }
@@ -1082,6 +1087,11 @@ class KeychainControllerMock: KeychainControllerProtocol {
}
class MediaPlayerMock: MediaPlayerProtocol {
var mediaSource: MediaSourceProxy?
var duration: TimeInterval {
get { return underlyingDuration }
set(value) { underlyingDuration = value }
}
var underlyingDuration: TimeInterval!
var currentTime: TimeInterval {
get { return underlyingCurrentTime }
set(value) { underlyingCurrentTime = value }