diff options
Diffstat (limited to 'dht/src/Data/Tox')
-rw-r--r-- | dht/src/Data/Tox/Msg.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dht/src/Data/Tox/Msg.hs b/dht/src/Data/Tox/Msg.hs index 4398586f..3188d86f 100644 --- a/dht/src/Data/Tox/Msg.hs +++ b/dht/src/Data/Tox/Msg.hs | |||
@@ -259,13 +259,13 @@ instance Serialize ChatID where | |||
259 | 259 | ||
260 | instance Read ChatID where | 260 | instance Read ChatID where |
261 | readsPrec _ s | 261 | readsPrec _ s |
262 | | Right bs <- parseToken32 s | 262 | | Right bs <- parseBase64Key256 s |
263 | , CryptoPassed ed <- Ed25519.publicKey bs | 263 | , CryptoPassed ed <- Ed25519.publicKey bs |
264 | = [ (ChatID ed, Prelude.drop 43 s) ] | 264 | = [ (ChatID ed, Prelude.drop 43 s) ] |
265 | | otherwise = [] | 265 | | otherwise = [] |
266 | 266 | ||
267 | instance Show ChatID where | 267 | instance Show ChatID where |
268 | show (ChatID ed) = showToken32 ed | 268 | show (ChatID ed) = showBase64Key256 ed |
269 | 269 | ||
270 | data InviteType = GroupInvite { groupName :: Text } | 270 | data InviteType = GroupInvite { groupName :: Text } |
271 | | AcceptedInvite | 271 | | AcceptedInvite |