🐛 Fix disturbable condition

This commit is contained in:
2024-06-27 12:20:42 +08:00
parent 9f7205ba14
commit 0276a9b0bf
2 changed files with 9 additions and 4 deletions

View File

@ -37,8 +37,10 @@ func GetStatusDisturbable(uid uint) error {
return nil
} else if err == nil && status.IsNoDisturb {
return fmt.Errorf("do not disturb")
} else {
} else if !isOnline {
return fmt.Errorf("offline")
} else {
return nil
}
}