Merge pull request #4566 from nextcloud/fix/noid/ktlint

fix(ktlint): correct code formatting
This commit is contained in:
Andy Scherzinger 2024-12-21 18:55:07 +01:00 committed by GitHub
commit afd1187115
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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()