diff options
| author | Roman Smrž <roman.smrz@seznam.cz> | 2026-05-30 10:13:50 +0200 |
|---|---|---|
| committer | Roman Smrž <roman.smrz@seznam.cz> | 2026-05-30 10:13:50 +0200 |
| commit | e590ad0f1bc378a3149cb66a0dce2200d34ddefb (patch) | |
| tree | 210d28dddf10b17c0bd7c876bb8d72447ab0320d /src/Erebos/Conversation | |
| parent | 791c532682578c0dd1a0e3779f36ccfbced93d60 (diff) | |
Extend ConversationType class to provide number of removed messages
Diffstat (limited to 'src/Erebos/Conversation')
| -rw-r--r-- | src/Erebos/Conversation/Class.hs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Erebos/Conversation/Class.hs b/src/Erebos/Conversation/Class.hs index 77458fa..96a0e6a 100644 --- a/src/Erebos/Conversation/Class.hs +++ b/src/Erebos/Conversation/Class.hs @@ -17,4 +17,7 @@ class (Typeable conv, Typeable msg) => ConversationType conv msg | conv -> msg, convMessageText :: msg -> Maybe Text convReference :: conv -> RefDigest - convMessageListSince :: Maybe conv -> conv -> [ ( msg, Bool ) ] + convMessageListSince + :: Maybe conv -- ^ Original state to diff from + -> conv -- ^ Current state + -> ( Int, [ ( msg, Bool ) ] ) -- ^ Number of removed, list of added messages |