mirror of
https://github.com/krau/SaveAny-Bot.git
synced 2026-06-26 17:51:32 +08:00
fix: watch chat check
This commit is contained in:
@@ -3,7 +3,7 @@ package database
|
||||
import "context"
|
||||
|
||||
func (user *User) WatchChat(ctx context.Context, chat WatchChat) error {
|
||||
if user.WatchChats == nil {
|
||||
if len(user.WatchChats) == 0 {
|
||||
user.WatchChats = make([]WatchChat, 0)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user