cheogram
created pr with
cheogram/resource-fix.1
commented
http://tangled.org/mrry.band/cheogram resource-fix
cmds
checkout latest patchset:
ssh pr.pico.sh pull cheogram:resource-fix | git am -3checkout specific patchset revision:
ssh pr.pico.sh pull cheogram:resource-fix [rev] | git am -3add changes to patch request:
git format-patch main --stdout | ssh pr.pico.sh cheogram:resource-fixadd comment to patch request:
ssh pr.pico.sh comment cheogram:resource-fix "lgtm!"
Patchset
cheogram/resource-fix.1
Only append / if there's a resource
Eric Roberts
2026-11-19T17:13:14ZSemantic diff summary
0 added,
0 modified,
0 signature changed,
0 removed
across 0 analyzed files
(1 file skipped: unsupported file type)
+1
-1
Main.hs
#
| ... | ... | @@ -1621,7 +1621,7 @@ component db redis pushStatsd backendHost did maybeAvatar cacheOOB sendIQ iqRece | |
| 1621 | 1621 | let (toResource, fromResource) | |
| 1622 | 1622 | | Just toResource <- T.stripPrefix (s"CHEOGRAM%outbound-sip%") =<< (strResource <$> jidResource to) = (toResource, s"tel") | |
| 1623 | 1623 | | otherwise = (fromMaybe mempty (strResource <$> jidResource to), s"sip:" ++ escapeJid (formatJID from)) | |
| 1624 | - | case (mapLocalpartToBackend (formatJID componentJid) =<< sanitizeSipLocalpart (maybe mempty strNode $ jidNode from), parseJID (unescapeJid localpart ++ s"/" ++ toResource)) of | |
| 1624 | + | case (mapLocalpartToBackend (formatJID componentJid) =<< sanitizeSipLocalpart (maybe mempty strNode $ jidNode from), parseJID (unescapeJid localpart ++ if T.null toResource then mempty else s"/" ++ toResource)) of | |
| 1625 | 1625 | (Just componentFrom, Just routeTo) -> liftIO $ do | |
| 1626 | 1626 | Just componentFromSip <- return $ parseJID (formatJID componentFrom ++ s"/" ++ fromResource) | |
| 1627 | 1627 | sendToComponent $ mkStanzaRec $ receivedStanza $ receivedStanzaFromTo componentFromSip routeTo stanza |