fix msg delete job

This commit is contained in:
shoopea 2020-01-13 16:43:58 +08:00
parent 9d7d962c28
commit 8603af3768

1
job.go
View File

@ -624,6 +624,7 @@ func jobMsgDelete(j Job) {
logOnError(err, "jobMsgDelete : getObjMsg("+strconv.FormatInt(j.Trigger, 10)+")")
clientDelTGMsg(j.UserID64, obj.ID64, obj.ChatID64)
} else {
p.Delay = 0
b, _ := json.Marshal(p)
_, err = createJob(cacheObjSubType[`job_msg_del`], objJobPriority, j.UserID64, 0, time.Now().Add(p.Delay).UTC(), b)
}