From 3cd25f42486914f33ae5c1d15b7affde4bcd5810 Mon Sep 17 00:00:00 2001 From: sowjanyakch Date: Thu, 24 Oct 2024 13:41:24 +0200 Subject: [PATCH] use const val for time Signed-off-by: sowjanyakch --- app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt b/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt index 55fe7c595..a24765646 100644 --- a/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt +++ b/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt @@ -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 } }