diff options
| author | Roman Smrž <roman.smrz@seznam.cz> | 2026-06-02 21:18:15 +0200 |
|---|---|---|
| committer | Roman Smrž <roman.smrz@seznam.cz> | 2026-06-02 21:18:15 +0200 |
| commit | 0af593143966fb5d75cabec0695d8a0587cbdd7e (patch) | |
| tree | 79b00d3a37803563736d36b50ea18754a2942e48 | |
| parent | cb71b9c56754abe739b889aeb9fd8bf80097c661 (diff) | |
Fix order of messages shown after selecting conversation
| -rw-r--r-- | main/Main.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/Main.hs b/main/Main.hs index 4b09d3d..2737915 100644 --- a/main/Main.hs +++ b/main/Main.hs @@ -837,7 +837,8 @@ cmdSelectContext = do Right conv -> do liftIO $ updatePromptStatus term h (Just conv) tzone <- liftIO $ getCurrentTimeZone - tlines <- liftIO $ mapM (printLine term . formatMessageFT tzone) $ takeWhile messageUnread $ conversationHistory conv + tlines <- liftIO $ mapM (printLine term . formatMessageFT tzone) $ + reverse $ takeWhile messageUnread $ conversationHistory conv var <- asks ciCurrentLinesVar liftIO $ modifyMVar_ var $ \_ -> return (reverse tlines) Left _ -> do |