domma-cms 0.105.2 → 0.107.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28,6 +28,8 @@ import {
28
28
  registerComponent,
29
29
  registerContactAccess,
30
30
  unregisterContactAccess,
31
+ registerDirectMessenger,
32
+ unregisterDirectMessenger,
31
33
  registerSidebarItem,
32
34
  registerTransform
33
35
  } from './hooks.js';
@@ -559,7 +561,9 @@ export async function registerPlugins(fastify) {
559
561
  // loads under a licence may.
560
562
  enableInstantCalls: () => enableInstantCalls({owner: manifest.name, tier: manifest.tier || 'free', closedSource: manifest.closedSource === true}),
561
563
  // Who may read a contact that is not their own (Contacts Pro's sharing) - hooks.js 7b.
562
- registerContactAccess: (fn) => registerContactAccess(manifest.name, fn)},
564
+ registerContactAccess: (fn) => registerContactAccess(manifest.name, fn),
565
+ // Direct messages between team members (Messages) - hooks.js 7c; a call's "Add people" uses it.
566
+ registerDirectMessenger: (fn) => registerDirectMessenger(manifest.name, fn)},
563
567
  settings,
564
568
  config: {}
565
569
  });
@@ -1120,6 +1124,7 @@ export async function runLifecycleHook(name, hook, fastify) {
1120
1124
  if (hook === 'onDisable') {
1121
1125
  disableInstantCalls(name);
1122
1126
  unregisterContactAccess(name);
1127
+ unregisterDirectMessenger(name);
1123
1128
  }
1124
1129
 
1125
1130
  const pluginJsPath = path.join(PLUGINS_DIR, name, 'plugin.js');