Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
Jade Ellis
e20cd2088a
fix: Avoid serialising a raw string
Database safety: This is equivalent, as top level strings are directly
serialised as byte arrays when not wrapped in a serialisation newtype
2025-12-03 16:26:48 +00:00

View file

@ -366,7 +366,7 @@ pub async fn mark_as_invited(
.raw_aput::<8, _, _>(&roomuser_id, self.services.globals.next_count().unwrap()); .raw_aput::<8, _, _>(&roomuser_id, self.services.globals.next_count().unwrap());
self.db self.db
.userroomid_invitesender .userroomid_invitesender
.raw_put(&userroom_id, sender_user); .insert(&userroom_id, sender_user);
self.db.userroomid_joined.remove(&userroom_id); self.db.userroomid_joined.remove(&userroom_id);
self.db.roomuserid_joined.remove(&roomuser_id); self.db.roomuserid_joined.remove(&roomuser_id);