Merge branch 'master' of https://github.com/gl00my/ii-go
commit
6ff2ef5799
10
ii/db.go
10
ii/db.go
|
@ -773,11 +773,11 @@ func (db *DB) _Store(m *Msg, edit bool) error {
|
|||
if _, ok := db.Idx.Hash[m.MsgId]; ok && !edit { // exist and not edit
|
||||
return errors.New("Already exists")
|
||||
}
|
||||
if repto != "" {
|
||||
if _, ok := db.Idx.Hash[repto]; !ok { // repto is absent, we should avoid loops!
|
||||
return errors.New("Wrong repto: " + repto)
|
||||
}
|
||||
}
|
||||
// if repto != "" {
|
||||
// if _, ok := db.Idx.Hash[repto]; !ok { // repto is absent, we should avoid loops!
|
||||
// return errors.New("Wrong repto: " + repto)
|
||||
// }
|
||||
// }
|
||||
fi, err := os.Stat(db.BundlePath())
|
||||
var off int64
|
||||
if err == nil {
|
||||
|
|
Loading…
Reference in New Issue