diff options
-rw-r--r-- | XMPPToTox.hs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/XMPPToTox.hs b/XMPPToTox.hs index d4da814c..b3372cfc 100644 --- a/XMPPToTox.hs +++ b/XMPPToTox.hs | |||
@@ -103,6 +103,9 @@ presenceToTox = tag' "{jabber:server}presence" | |||
103 | when (not $ USERSTATUS `elem` xs) $ do | 103 | when (not $ USERSTATUS `elem` xs) $ do |
104 | -- Missing <show> element means Available. | 104 | -- Missing <show> element means Available. |
105 | yield $ TwoByte USERSTATUS $ jabberUserStatus Available | 105 | yield $ TwoByte USERSTATUS $ jabberUserStatus Available |
106 | when (not $ STATUSMESSAGE `elem` xs) $ do | ||
107 | -- Missing <status> implies empty status. | ||
108 | yield $ UpToN STATUSMESSAGE mempty | ||
106 | 109 | ||
107 | unknownToTox :: MonadThrow m => | 110 | unknownToTox :: MonadThrow m => |
108 | ConduitM Event CryptoMessage m (Maybe ()) | 111 | ConduitM Event CryptoMessage m (Maybe ()) |