From cb3ec8d3a2bfd31511777425037ba8db3fde0b62 Mon Sep 17 00:00:00 2001 From: "NGnius (Graham)" Date: Mon, 7 Aug 2023 16:12:22 -0400 Subject: [PATCH] Fix message dismissing not saving --- backend/src/api/message.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/api/message.rs b/backend/src/api/message.rs index d273930..3ac093e 100644 --- a/backend/src/api/message.rs +++ b/backend/src/api/message.rs @@ -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()]; }