From 1260ea57ee29f16cfb2586f76276f311ee5561ca Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Mon, 24 May 2021 09:25:10 -0500 Subject: [PATCH] Don't look for tel when stripping proxy For /msg command, if the to is a valid JID and the domain part is == cheogram.com then just do the proxiedJidToReal and don't try to be nice about typo'd JIDs with fancy tel detection that can break if the JID has too many digits but is otherwise not trying to be a tel. --- Main.hs | 1 - 1 file changed, 1 deletion(-) diff --git a/Main.hs b/Main.hs index 6785908..84457d8 100644 --- a/Main.hs +++ b/Main.hs @@ -1542,7 +1542,6 @@ parseCommand txt room nick componentJid | otherwise = Just $ Send txt where maybeStripProxy jid - | Just _ <- normalizeTel =<< strNode <$> jidNode jid = jid | jidDomain jid == jidDomain (componentJid) = fromMaybe jid $ proxiedJidToReal jid | otherwise = jid citxt = CI.mk txt -- 2.38.5