cabal-client
Advanced tools
Changelog
[8.0.2] - 2024-01-25
Changelog
[8.0.0] - 2023-10-17
Changelog
[7.3.0] - 2022-05-24
Use getter for PMChannelDetails.joined (#89) (Daniel Chiquito).
The getter refers to the CabalDetails instance which holds the settings for the cabal to determine if the private message channel should be considered joined or not.
This has the side affect of requiring the CabalDetails when initializing the PMChannelDetails, which involves changing the constructor signature.
This is technically a breaking change, however ChannelDetails
is an internal implementation concern of
cabal-details and not intended to be one of the public facing api functions.
e6e7308
) (cblgh)Changelog
[7.2.0] - 2021-11-23
bump cabal-core to 15.0.0 (only changes were to pm api) (#82) (@cblgh)
disallow channel names == hypercore key, support latest core pm format (#82) (@cblgh)
Revert "only add message listener when we're adding a new channel" (1bf10a9
) (@cblgh).
This reverts commit 1dbd522
.
It seems this commit introduced a regression in functionality such that messages do not appear in channels (#78) and might also be responsible for a similar bug in cabal-desktop@6.0.8
It would be good to only add the relevant message listeners, instead of duplicates, but I think it will have to be done anew with fresh eyes.
Adds support for cabal-core's private message:
CabalDetails.publishPrivateMessage
function has been addedCabalDetails.getPrivateMessageList
returns a list of channel names corresponding to ongoing PMs for the local userCabalDetails.isChannelPrivate(channel)
returns true if the passed in channel is a private message channel, false otherwiseCabalDetails.publishMessage
now redirects a published message to publishPrivateMessage
if it is used to post a message to a private message channelpublish-private-message
, private-message
events are now emittedPMChannelDetails
has been added to enable support for private message channels with minimal duplicated functionalityCabalDetails.getChannels(opts)
was extended with an option includePM
to include private message channels in the returned resultFor more information, see the API documentation.