<feed xmlns='http://www.w3.org/2005/Atom'>
<title>xavi/dino/libdino/src/service/history_sync.vala, branch master</title>
<subtitle>Fork of GTK3 Dino with experimental features.
</subtitle>
<id>https://gitea.privatedns.org/xavi/dino/atom?h=master</id>
<link rel='self' href='https://gitea.privatedns.org/xavi/dino/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/dino/'/>
<updated>2026-04-11T22:40:37+00:00</updated>
<entry>
<title>history_sinc.vala: Do not ask 'before' ID on timestamp range</title>
<updated>2026-04-11T22:40:37+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi92@disroot.org</email>
</author>
<published>2026-04-11T22:40:37+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/dino/commit/?id=d69700b3402ccb81984c2c269bb2edbb5f3fbc10'/>
<id>urn:sha1:d69700b3402ccb81984c2c269bb2edbb5f3fbc10</id>
<content type='text'>
According to their devs, for some reason some servers like Prosody
dislike receiving an archive query with *both* a timestamp range and a
'before' ID, returning an item-not-found error in such case. An example
query is shown below.

Instead, now the 'before' ID is left empty, which seems to have restored
the expected behaviour.

&lt;iq id='redacted' type='set' to='redacted'&gt;
  &lt;query xmlns='urn:xmpp:mam:2' queryid='redacted'&gt;
    &lt;x xmlns='jabber:x:data' type='submit'&gt;
      &lt;field type='hidden' var='FORM_TYPE'&gt;
        &lt;value&gt;
          urn:xmpp:mam:2
        &lt;/value&gt;
      &lt;/field&gt;
      &lt;field var='start'&gt;
        &lt;value&gt;
          2026-04-11T02:25:00Z
        &lt;/value&gt;
      &lt;/field&gt;
      &lt;field var='end'&gt;
        &lt;value&gt;
          2026-04-11T19:41:12Z
        &lt;/value&gt;
      &lt;/field&gt;
    &lt;/x&gt;
    &lt;set xmlns='http://jabber.org/protocol/rsm'&gt;
      &lt;max&gt;
        20
      &lt;/max&gt;
      &lt;before&gt;
        redacted
      &lt;/before&gt;
    &lt;/set&gt;
  &lt;/query&gt;
&lt;/iq&gt;
</content>
</entry>
<entry>
<title>Improve history sync</title>
<updated>2026-02-10T22:40:46+00:00</updated>
<author>
<name>Marvin W</name>
<email>git@larma.de</email>
</author>
<published>2023-03-20T21:37:18+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/dino/commit/?id=a859694a64ec3e5481e8f5051187587ecd4c3ebf'/>
<id>urn:sha1:a859694a64ec3e5481e8f5051187587ecd4c3ebf</id>
<content type='text'>
- Ensure we fully fetch desired history if possible (previously, duplicates
  from offline message queue could hinder MAM sync)
- Early drop illegal MAM messages so they don't pile up in the pending queue
  waiting for their query to end (which it never will if they were not
  requested in first place).

Fixes #1386
</content>
</entry>
<entry>
<title>Check XmppStream against null</title>
<updated>2023-10-09T14:38:02+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-10-04T13:43:31+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/dino/commit/?id=e1fd11775c7d275dd57d7d9202e88ac5173bbeef'/>
<id>urn:sha1:e1fd11775c7d275dd57d7d9202e88ac5173bbeef</id>
<content type='text'>
Most of the calls to stream_interactor.get_stream(account) were already
doing null checks, but there were still some missing.
</content>
</entry>
<entry>
<title>history_sync.vala: Remove noisy debug</title>
<updated>2023-10-09T12:09:00+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-10-03T07:16:11+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/dino/commit/?id=0f3d7e27ceb37a0946cd319370f151f22e02b25d'/>
<id>urn:sha1:0f3d7e27ceb37a0946cd319370f151f22e02b25d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Improve history sync under load</title>
<updated>2023-10-05T12:32:06+00:00</updated>
<author>
<name>Marvin W</name>
<email>git@larma.de</email>
</author>
<published>2023-02-06T20:13:33+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/dino/commit/?id=55374331bec0d79fc23d2b1291ed544b0b3d4094'/>
<id>urn:sha1:55374331bec0d79fc23d2b1291ed544b0b3d4094</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add priority for and allow cancellation of outgoing stanzas</title>
<updated>2023-10-05T12:32:06+00:00</updated>
<author>
<name>Marvin W</name>
<email>git@larma.de</email>
</author>
<published>2023-01-31T14:13:12+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/dino/commit/?id=7a38a3867446221032ac8111be8c6d752ef3ccd4'/>
<id>urn:sha1:7a38a3867446221032ac8111be8c6d752ef3ccd4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>MAM: Fix latest range not being stored in db if it contained a duplicate</title>
<updated>2023-10-05T12:32:05+00:00</updated>
<author>
<name>fiaxh</name>
<email>git@lightrise.org</email>
</author>
<published>2023-01-16T16:24:58+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/dino/commit/?id=202ef664fb6fd86f2ddea57a588b64e130e481d1'/>
<id>urn:sha1:202ef664fb6fd86f2ddea57a588b64e130e481d1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix compiler warnings</title>
<updated>2023-10-05T12:32:04+00:00</updated>
<author>
<name>fiaxh</name>
<email>git@lightrise.org</email>
</author>
<published>2022-11-26T21:26:25+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/dino/commit/?id=6c5ec41beb126698fb096931a5da6cd5df0cecbb'/>
<id>urn:sha1:6c5ec41beb126698fb096931a5da6cd5df0cecbb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>MAM: Fix processing after range was fetched completely, fix merging of ranges</title>
<updated>2023-10-05T12:32:04+00:00</updated>
<author>
<name>fiaxh</name>
<email>git@lightrise.org</email>
</author>
<published>2022-12-20T18:51:38+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/dino/commit/?id=c7ff1d6bea5d8bd1d07179a68d2dae3910787fc0'/>
<id>urn:sha1:c7ff1d6bea5d8bd1d07179a68d2dae3910787fc0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix some MAM issues</title>
<updated>2023-10-05T12:32:04+00:00</updated>
<author>
<name>fiaxh</name>
<email>git@lightrise.org</email>
</author>
<published>2022-11-20T21:12:38+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/dino/commit/?id=5a8bccb454197553ec81410ed380b1a9c6db8af7'/>
<id>urn:sha1:5a8bccb454197553ec81410ed380b1a9c6db8af7</id>
<content type='text'>
- Messages from MUCs weren't added to their respective MUC MAM ranges,
thus re-fetched on rejoin.
- The earliest ('first') message of a mam page was used to update the
to_id, but it should have been 'last'; also the other way around.
- Duplicates weren't detected properly.
</content>
</entry>
</feed>
