mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-27 05:22:14 -08:00
Merge f8cd8469ad into aef5d77b3b
This commit is contained in:
commit
a832104a15
3 changed files with 13 additions and 1 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue