diff options
| author | Roman Smrž <roman.smrz@seznam.cz> | 2026-06-22 21:47:58 +0200 |
|---|---|---|
| committer | Roman Smrž <roman.smrz@seznam.cz> | 2026-06-23 21:26:32 +0200 |
| commit | 8dfb26e8e115cf04350c5333ce293c3026361adb (patch) | |
| tree | 01c9775b1a6effd985050982512eac523f1d7c2e /main/Main.hs | |
| parent | 7f39ef530bb09eec5bb07c60b0f8f622a1a31698 (diff) | |
Convert to generic Message type for formatting
Diffstat (limited to 'main/Main.hs')
| -rw-r--r-- | main/Main.hs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/main/Main.hs b/main/Main.hs index 2737915..def3b8c 100644 --- a/main/Main.hs +++ b/main/Main.hs @@ -444,9 +444,7 @@ interactiveLoop st opts = withTerminal commandCompletion $ \term -> do SelectedConversation conv -> return $ conversationPeer conv _ -> return Nothing when (not tui || maybe False (msgPeer cur `sameIdentity`) mbpid) $ do - line <- printLine term $ - (if new then withStyle (setForegroundColor BrightYellow noStyle) else id) $ - plainText $ T.pack $ formatDirectMessage tzone msg + line <- printLine term $ formatMessageFT tzone $ makeMessage new msg modifyMVar_ currentLinesVar $ return . (line :) case optDmBotEcho opts of |