nishiki-bail 1.1.20 → 1.1.22

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.
@@ -93,6 +93,13 @@ export const MEDIA_PATH_MAP = {
93
93
  'md-msg-hist': '/mms/md-app-state',
94
94
  'biz-cover-photo': '/pps/biz-cover-photo'
95
95
  };
96
+ export const NEWSLETTER_MEDIA_PATH_MAP = {
97
+ image: '/newsletter/newsletter-image',
98
+ video: '/newsletter/newsletter-video',
99
+ document: '/newsletter/newsletter-document',
100
+ audio: '/newsletter/newsletter-audio',
101
+ sticker: '/newsletter/newsletter-sticker'
102
+ };
96
103
  export const MEDIA_HKDF_KEY_MAPPING = {
97
104
  audio: 'Audio',
98
105
  document: 'Document',
@@ -444,7 +444,7 @@ export const makeMessagesSocket = (config) => {
444
444
  if (lidResults.length > 0) {
445
445
  logger.trace('Storing LID maps from device call');
446
446
  await signalRepository.lidMapping.storeLIDPNMappings(lidResults.map(a => ({ lid: a.lid, pn: a.id })));
447
- // Force-refresh sessions for newly mapped LIDs to align identity addressing
447
+ // Reuse an open LID session; assertSessions fetches one when none exists.
448
448
  try {
449
449
  const lids = lidResults.map(a => a.lid);
450
450
  if (lids.length) {