This commit is contained in:
William Rehwinkel 2025-12-13 16:36:43 +01:00 committed by GitHub
commit a832104a15
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 13 additions and 1 deletions

View file

@ -25,6 +25,7 @@ import (
var (
ErrDisallowed = errors.New("disallowed")
ErrDBIsNil = errors.New("db == nil")
)
const (
@ -727,7 +728,7 @@ func (mysql *MySQL) AddDirectMessage(sender, senderAccount, recipient, recipient
// note that accountName is the unfolded name
func (mysql *MySQL) DeleteMsgid(msgid, accountName string) (err error) {
if mysql.db == nil {
return nil
return ErrDBIsNil
}
ctx, cancel := context.WithTimeout(context.Background(), mysql.getTimeout())