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,7 +93,11 @@ internal object QuickOperation: IActionHandler() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (MsgConstant.KCHATTYPEGROUP == record.chatType && operation.containsKey("delete") && operation["delete"].asBoolean) {
|
if (MsgConstant.KCHATTYPEGROUP == record.chatType && operation.containsKey("delete") && operation["delete"].asBoolean) {
|
||||||
MsgSvc.recallMsg(msgHash)
|
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) {
|
if (MsgConstant.KCHATTYPEGROUP == record.chatType && operation.containsKey("kick") && operation["kick"].asBoolean) {
|
||||||
GroupSvc.kickMember(record.peerUin, false, "", record.senderUin)
|
GroupSvc.kickMember(record.peerUin, false, "", record.senderUin)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user