mirror of https://codeberg.org/cage/tinmop/
- fixed renumbering of 'message-index' of status.
The old procedure did not took into account the 'folder' and 'timeline' columns making possible to overwrite index of a copy of the same message placed in different folder. This bug made the program crash.
This commit is contained in:
parent
c39fe07a34
commit
5df777a804
|
@ -1459,7 +1459,9 @@ messages are sorted as below:
|
|||
(let* ((status-id (row-message-status-id (annotated-tree-line->data-plist line)))
|
||||
(query-update (update :status
|
||||
(set= :message-index new-index)
|
||||
(where (:= :status-id status-id)))))
|
||||
(where (:and (:= :status-id status-id)
|
||||
(:= :folder folder)
|
||||
(:= :timeline timeline-type))))))
|
||||
(query query-update)
|
||||
(incf new-index)))))))
|
||||
|
||||
|
|
Loading…
Reference in New Issue