diff options
Diffstat (limited to 'libdino')
| -rw-r--r-- | libdino/src/service/muc_manager.vala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libdino/src/service/muc_manager.vala b/libdino/src/service/muc_manager.vala index fd8b4336..29c6c5ca 100644 --- a/libdino/src/service/muc_manager.vala +++ b/libdino/src/service/muc_manager.vala @@ -112,7 +112,9 @@ public class MucManager : StreamInteractionModule, Object { } if (!mucs_sync_cancellables[account].has_key(jid.bare_jid)) { mucs_sync_cancellables[account][jid.bare_jid] = new Cancellable(); - history_sync.fetch_everything.begin(account, jid.bare_jid, mucs_sync_cancellables[account][jid.bare_jid], conversation.active_last_changed, (_, res) => { + // If the conversation was newly opened, fetch a bit before + DateTime fetch_from_time = conversation.active_last_changed.add(-TimeSpan.DAY * 5); + history_sync.fetch_everything.begin(account, jid.bare_jid, mucs_sync_cancellables[account][jid.bare_jid], fetch_from_time, (_, res) => { history_sync.fetch_everything.end(res); mucs_sync_cancellables[account].unset(jid.bare_jid); }); |
