mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-27 08:55:54 +03: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
1 changed files with 3 additions and 0 deletions
|
@ -1889,6 +1889,8 @@ class ChatController(args: Bundle) :
|
|||
|
||||
if (message.hasFileAttachment()) return false
|
||||
|
||||
if (OBJECT_MESSAGE.equals(message.message)) return false
|
||||
|
||||
val isOlderThanSixHours = message
|
||||
.createdAt
|
||||
?.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 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 OBJECT_MESSAGE: String = "{object}"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue