mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-29 16:40:32 +01:00
handle invalid objectId
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
parent
562faaaa44
commit
8e599a567d
@ -557,6 +557,9 @@ class ConversationsListActivity :
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun futureEvent(conversation: ConversationModel): Boolean {
|
private fun futureEvent(conversation: ConversationModel): Boolean {
|
||||||
|
if(!conversation.objectId.contains("#")){
|
||||||
|
return false
|
||||||
|
}
|
||||||
return conversation.objectType == ConversationEnums.ObjectType.EVENT &&
|
return conversation.objectType == ConversationEnums.ObjectType.EVENT &&
|
||||||
(conversation.objectId.split("#")[0].toLong() - (System.currentTimeMillis() / 1000)) >
|
(conversation.objectId.split("#")[0].toLong() - (System.currentTimeMillis() / 1000)) >
|
||||||
AGE_THRESHOLD_FOR_EVENT_CONVERSATIONS
|
AGE_THRESHOLD_FOR_EVENT_CONVERSATIONS
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:padding="32dp"
|
android:padding="8dp"
|
||||||
android:background="@color/bg_bottom_sheet">
|
android:background="@color/bg_bottom_sheet">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
Loading…
Reference in New Issue
Block a user