forked from NG-SD-Plugins/PowerTools
Fix message dismissing not saving
This commit is contained in:
parent
b7cf8b8caf
commit
cb3ec8d3a2
1 changed files with 2 additions and 2 deletions
|
@ -119,8 +119,8 @@ impl AsyncCallable for AsyncMessageDismisser {
|
|||
let id = if let Some(param0) = params.get(0) {
|
||||
if let Primitive::Empty = param0 {
|
||||
None
|
||||
} else if let Primitive::U64(since) = param0 {
|
||||
Some(*since)
|
||||
} else if let Primitive::F64(since) = param0 {
|
||||
Some(*since as u64)
|
||||
} else {
|
||||
return vec!["dismiss message invalid parameter 0".into()];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue