Skip to content

Commit 64cc9a1

Browse files
committed
feat: convo volatile archive entries are now stored as maps
1 parent 8fa9770 commit 64cc9a1

6 files changed

Lines changed: 900 additions & 426 deletions

File tree

include/session/config/base.hpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -963,6 +963,15 @@ class ConfigBase : public ConfigSig {
963963
/// - `extra` -- bt_dict_consumer over the extra data subdict.
964964
virtual void load_extra_data(oxenc::bt_dict_consumer&&) {}
965965

966+
/// API: base/ConfigBase::after_merge
967+
///
968+
/// Called at the end of _merge(), after the active config dict has been updated. The base
969+
/// implementation does nothing. Subclasses that maintain auxiliary data structures derived
970+
/// from the active config (e.g. local-only archive maps) may override this to reconcile those
971+
/// structures against the newly merged active dict — for example, removing archive entries
972+
/// that have been re-activated by an incoming config from a peer.
973+
virtual void after_merge() {}
974+
966975
/// API: base/ConfigBase::load_key
967976
///
968977
/// Called to load an ed25519 key for encryption; this is meant for use by single-ownership

0 commit comments

Comments
 (0)