libsignal,lid-mapping, etc.: Partially fix "No sessions" on hosted JIDs

This commit is contained in:
Rajeh Taher
2025-10-16 18:31:01 +03:00
parent d0feb240fa
commit e41a66b3c4
8 changed files with 37 additions and 30 deletions
+2 -2
View File
@@ -102,9 +102,9 @@ export const isJidStatusBroadcast = (jid: string) => jid === 'status@broadcast'
/** is the jid a newsletter */
export const isJidNewsletter = (jid: string | undefined) => jid?.endsWith('@newsletter')
/** is the jid a hosted PN */
export const isJidHostedPnUser = (jid: string | undefined) => jid?.endsWith('@hosted')
export const isHostedPnUser = (jid: string | undefined) => jid?.endsWith('@hosted')
/** is the jid a hosted LID */
export const isJidHostedLidUser = (jid: string | undefined) => jid?.endsWith('@hosted.lid')
export const isHostedLidUser = (jid: string | undefined) => jid?.endsWith('@hosted.lid')
const botRegexp = /^1313555\d{4}$|^131655500\d{2}$/