This commit is contained in:
Green Sky 2024-10-24 12:07:06 +02:00
parent 34908967aa
commit 82a0fc0d36
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View File

@ -13,8 +13,8 @@ Bridge::Bridge(
RegistryMessageModelI& rmm,
ConfigModelI& conf,
MessageCommandDispatcher* mcd
) : _cr(cr), _rmm(rmm), _conf(conf), _mcd(mcd) {
_rmm.subscribe(this, enumType::message_construct);
) : _cr(cr), _rmm(rmm), _rmm_sr(_rmm.newSubRef(this)), _conf(conf), _mcd(mcd) {
_rmm_sr.subscribe(RegistryMessageModel_Event::message_construct);
if (!_conf.has_bool("Bridge", "username_angle_brackets")) {
_conf.set("Bridge", "username_angle_brackets", true);

View File

@ -15,6 +15,7 @@ class MessageCommandDispatcher;
class Bridge : public RegistryMessageModelEventI {
Contact3Registry& _cr;
RegistryMessageModelI& _rmm;
RegistryMessageModelI::SubscriptionReference _rmm_sr;
ConfigModelI& _conf;
MessageCommandDispatcher* _mcd;