use const val for time

Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
sowjanyakch 2024-10-24 13:41:24 +02:00
parent 808da8970a
commit 3cd25f4248
No known key found for this signature in database
GPG key ID: F7AA2A8B65B50220

View file

@ -2766,7 +2766,7 @@ class ChatActivity :
message2.timestamp,
message1.timestamp
)
val isLessThan5Min = timeDifference > 300
val isLessThan5Min = timeDifference > FIVE_MINUTES_IN_SECONDS
if (isSameDayMessages(message2, message1) &&
(message2.actorId == message1.actorId) &&
(!isLessThan5Min) &&
@ -3834,5 +3834,6 @@ class ChatActivity :
private const val CURRENT_AUDIO_WAS_PLAYING_KEY = "CURRENT_AUDIO_PLAYING"
private const val RESUME_AUDIO_TAG = "RESUME_AUDIO_TAG"
private const val DELAY_TO_SHOW_PROGRESS_BAR = 1000L
private const val FIVE_MINUTES_IN_SECONDS:Long = 300
}
}