diff options
| author | Roman Smrž <roman.smrz@seznam.cz> | 2022-05-17 22:06:01 +0200 | 
|---|---|---|
| committer | Roman Smrž <roman.smrz@seznam.cz> | 2022-05-17 22:06:01 +0200 | 
| commit | b8e55c64a68763b0953945476cc75206f5354023 (patch) | |
| tree | 741f7e66faace0be22ecaa6346f2ca79c045893b /src/Main.hs | |
| parent | b9e50633254a8c45159a6088309969872b8aae50 (diff) | |
Mergeable class with separate component type
Diffstat (limited to 'src/Main.hs')
| -rw-r--r-- | src/Main.hs | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/src/Main.hs b/src/Main.hs index 7fb6ff3..d764fe0 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -286,7 +286,7 @@ cmdHistory = void $ do      let powner = finalOwner pid      case find (sameIdentity powner . msgPeer) $ -            messageThreadView $ lookupSharedValue $ lsShared $ headObject ehead of +            toThreadList $ lookupSharedValue $ lsShared $ headObject ehead of          Just thread -> do              tzone <- liftIO $ getCurrentTimeZone              liftIO $ mapM_ (putStrLn . formatMessage tzone) $ reverse $ take 50 $ threadToList thread @@ -313,7 +313,7 @@ cmdContacts :: Command  cmdContacts = do      args <- words <$> asks ciLine      ehead <- asks ciHead -    let contacts = contactView $ lookupSharedValue $ lsShared $ headObject ehead +    let contacts = toContactList $ lookupSharedValue $ lsShared $ headObject ehead          verbose = "-v" `elem` args      forM_ (zip [1..] contacts) $ \(i :: Int, c) -> do          liftIO $ putStrLn $ show i ++ ": " ++ T.unpack (displayIdentity $ contactIdentity c) ++ |