mirror of
https://github.com/whitechi73/OpenShamrock.git
synced 2024-08-14 13:12:17 +08:00
add delete_delay
option in QuickOperation
This commit is contained in:
parent
252a3527a8
commit
a78b5cab23
@ -93,8 +93,12 @@ internal object QuickOperation: IActionHandler() {
|
||||
}
|
||||
|
||||
if (MsgConstant.KCHATTYPEGROUP == record.chatType && operation.containsKey("delete") && operation["delete"].asBoolean) {
|
||||
Timer().schedule(object : TimerTask() {
|
||||
override fun run() {
|
||||
MsgSvc.recallMsg(msgHash)
|
||||
}
|
||||
}, operation['delete_delay'].asIntOrNull?.toUInt() ?: 0)
|
||||
}
|
||||
if (MsgConstant.KCHATTYPEGROUP == record.chatType && operation.containsKey("kick") && operation["kick"].asBoolean) {
|
||||
GroupSvc.kickMember(record.peerUin, false, "", record.senderUin)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user