fix(ktlint): correct code formatting

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2024-12-21 16:50:40 +01:00
parent 144ccc4106
commit 62d1eeafce
No known key found for this signature in database
GPG Key ID: 6CADC7E3523C308B

View File

@ -1826,8 +1826,9 @@ class ChatActivity :
if (mediaPlayer != null) {
if (message.isPlayingVoiceMessage) {
val pos = mediaPlayer!!.currentPosition.toFloat() / VOICE_MESSAGE_SEEKBAR_BASE
if (pos + VOICE_MESSAGE_PLAY_ADD_THRESHOLD < (mediaPlayer!!.duration.toFloat() /
VOICE_MESSAGE_SEEKBAR_BASE)
if (pos + VOICE_MESSAGE_PLAY_ADD_THRESHOLD < (
mediaPlayer!!.duration.toFloat() / VOICE_MESSAGE_SEEKBAR_BASE
)
) {
lastRecordMediaPosition = mediaPlayer!!.currentPosition
message.voiceMessagePlayedSeconds = pos.toInt()