mirror of
https://github.com/stoatchat/stoatchat.git
synced 2026-08-31 09:22:32 +00:00
fix: bonfire session deletion redis key is incorrect (#863)
* fix: presence key was incorrect after other related update Signed-off-by: IAmTomahawkx <iamtomahawkx@gmail.com> * rust analyzer try not to be annoying challenge Signed-off-by: IAmTomahawkx <iamtomahawkx@gmail.com> * fix: delete session redis key is wrong Signed-off-by: IAmTomahawkx <iamtomahawkx@gmail.com> --------- Signed-off-by: IAmTomahawkx <iamtomahawkx@gmail.com>
This commit is contained in:
@@ -71,7 +71,7 @@ async fn delete_session_internal(user_id: &str, session_id: u32, skip_region: bo
|
||||
}
|
||||
|
||||
// Return whether this was the last session
|
||||
let is_empty = __get_set_size(&mut conn, user_id).await == 0;
|
||||
let is_empty = __get_set_size(&mut conn, &format!("sessions:{user_id}")).await == 0;
|
||||
if is_empty {
|
||||
__remove_from_set_string(&mut conn, ONLINE_SET, user_id).await;
|
||||
info!("User ID {} just went offline.", &user_id);
|
||||
|
||||
Reference in New Issue
Block a user