Commit 29db441
committed
Export: fix from-date boundary and respect range in topic media loader
Address edge cases on top of the offset_date jump:
* SingleMessageAfter: switch the comparison to >= so a split whose newest
message has date == singlePeerFrom is not pre-skipped by the count
probe. SkipMessageByDate keeps messages with singlePeerFrom <= date, so
the pre-iteration filter must match that inclusive lower bound.
* requestChatMessages (onlyMyMessages branch): messages.search uses
strict > for min_date and strict < for max_date, while the exporter's
canonical range is [singlePeerFrom, singlePeerTill). Pass
min_date = singlePeerFrom - 1 to keep messages dated exactly
singlePeerFrom; max_date stays singlePeerTill.
* loadNextTopicMessageFile: skip media download for messages outside the
date range, mirroring loadNextMessageFile for the chat path. Without
this, topic exports with a date filter still trigger downloads for
out-of-range messages.
* changelog.txt: add a user-facing entry.1 parent 16a23f7 commit 29db441
3 files changed
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2607 | 2607 | | |
2608 | 2608 | | |
2609 | 2609 | | |
2610 | | - | |
| 2610 | + | |
| 2611 | + | |
| 2612 | + | |
| 2613 | + | |
2611 | 2614 | | |
2612 | 2615 | | |
2613 | 2616 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1941 | 1941 | | |
1942 | 1942 | | |
1943 | 1943 | | |
| 1944 | + | |
| 1945 | + | |
| 1946 | + | |
| 1947 | + | |
| 1948 | + | |
1944 | 1949 | | |
1945 | | - | |
| 1950 | + | |
1946 | 1951 | | |
1947 | 1952 | | |
1948 | 1953 | | |
| |||
2603 | 2608 | | |
2604 | 2609 | | |
2605 | 2610 | | |
| 2611 | + | |
| 2612 | + | |
| 2613 | + | |
2606 | 2614 | | |
2607 | 2615 | | |
2608 | 2616 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
0 commit comments