mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-13 07:44:11 +01:00
hide deletion action ob object_share messages popup menu
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
80e1bc6505
commit
f242b5fcec
@ -1889,6 +1889,8 @@ class ChatController(args: Bundle) :
|
|||||||
|
|
||||||
if (message.hasFileAttachment()) return false
|
if (message.hasFileAttachment()) return false
|
||||||
|
|
||||||
|
if (OBJECT_MESSAGE.equals(message.message)) return false
|
||||||
|
|
||||||
val isOlderThanSixHours = message
|
val isOlderThanSixHours = message
|
||||||
.createdAt
|
.createdAt
|
||||||
?.before(Date(System.currentTimeMillis() - AGE_THREHOLD_FOR_DELETE_MESSAGE)) == true
|
?.before(Date(System.currentTimeMillis() - AGE_THREHOLD_FOR_DELETE_MESSAGE)) == true
|
||||||
@ -2022,5 +2024,6 @@ class ChatController(args: Bundle) :
|
|||||||
private const val MESSAGE_MAX_LENGTH: Int = 1000
|
private const val MESSAGE_MAX_LENGTH: Int = 1000
|
||||||
private const val AGE_THREHOLD_FOR_DELETE_MESSAGE: Int = 21600000 // (6 hours in millis = 6 * 3600 * 1000)
|
private const val AGE_THREHOLD_FOR_DELETE_MESSAGE: Int = 21600000 // (6 hours in millis = 6 * 3600 * 1000)
|
||||||
private const val REQUEST_CODE_CHOOSE_FILE: Int = 555
|
private const val REQUEST_CODE_CHOOSE_FILE: Int = 555
|
||||||
|
private const val OBJECT_MESSAGE: String = "{object}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user