Skip to content

Release Alpha.17 - v2.0.0-alpha

Pre-release
Pre-release

Choose a tag to compare

@Gerben-T Gerben-T released this 30 Sep 08:34
d98c9c5

What's Changed

Full Changelog: v2.0.0-alpha.16...v2.0.0-alpha.17

More info

This release adds a couple things to make it easier to recognize new unread messages.

When you have started a chat before and come back to the webpage at a later time, the library will know you have had a chat before and starts a "slow" polling. This polling is slower than the normal polling.

Once there are new messages found the chat opens up by default (or when setting window.parleySettings.interface.unreadMessagesAction = 0 explicitly).

Instead of the chat opening you can also set window.parleySettings.interface.unreadMessagesAction = 1 which will show an unread message badge with a counter in it.
See https://developers.parley.nu/docs/settings-2#unread-message-badge
The background color (red) and font color (white) are editable using the following css variables:

  • --parley-messenger-unread-messages-badge-background-color
  • --parley-messenger-unread-messages-badge-color

Further are some small improvements like:

  • GET /messages now uses the /after:xxx filter to only fetch new messages instead of all messages
  • Added more padding on the launcher button icon
  • Scrolling to the latest message didn't work. Now it works as long as you didn't manually scroll yourself. There is a small margin at the bottom so you don't have to scroll all the way to the bottom to "re-enable" the automatic scrolling on new messages.