UNPKG

converse.js

Version:
863 lines (747 loc) 81.2 kB
# Changelog ## 5.0.5 (2019-11-20) - Prevent editing of sent file uploads. - #1089: When filtering the roster for `online` users, show all non-offline users. - #1733: New message notifications for a minimized chat stack on top of each other - #1757: Chats are hidden behind the controlbox on mobile - #1760: Private messages no longer received after websocket reconnect ## 5.0.4 (2019-10-08) - New config option [allow_message_corrections](https://conversejs.org/docs/html/configuration.html#allow_message_corrections) which, if set to `last`, limits editing of sent messages to the last message sent. - Bugfix: Don't treat every duplicate message ID as a message correction; since some clients don't use globally unique ID's this causes false positives. - Bugfix: process stanzas from mam one-by-one in order to correctly process message receipts - #1712: `TypeError: plugin._features is not a function` - #1714: Don't notify the user in case we're receiving a message delivery receipt only - #1739: New config option [assets_path](https://conversejs.org/docs/html/configuration.html#assets_path) which lets you set the path from which "chunks" are loaded. ## 5.0.3 (2019-09-13) - Emit `chatBoxFocused` and `chatBoxBlurred` events for emoji picker input - SECURITY FIX: Reject unencapsulated forwarded messages, since we don't support XEP-0297 on its own ## 5.0.2 (2019-09-11) - `po` translations files are now loaded via Webpack. As a result the `locales_url` config option is now removed given that the path to the locale JSON files is now determined by the webpack config and can't be changed at runtime. - The JSON representing emojis is now fetched asynchronously as a separate file `converse.emojis.js`. - Webpack is now configured with a `publicPath` set to `/dist/`. This is necessary so that chunks (such as the emojis and locales JSON files) can be fetched asynchronously. This means that all your assets need to be served at `/dist`. If you need to set a different path, you'll need to set `publicPath` in `webpack.config.js` to your preferred path and then rebuild all assets (e.g. `make dist`). - Use `listenTo` to avoid memory leaks when views get removed. - SECURITY FIX: Ignore MAM `chat` messages not sent from yourself - #1692 Bugfix: `TypeError: oldest_message is undefined` - #1704: SECURITY FIX: Impersonation by misusage of groupchat carbons - #1705: Bugfix: `this.roomspanel` is `undefined` after hibernating ## 5.0.1 (2019-08-14) - Add a new GUI for moderator actions. You can trigger it by entering `/modtools` in a MUC. - Reconnect if the server doesn't respond to a `ping` within 10 seconds. - Don't query for MAM MUC messages before the cached messages have been restored (another cause of duplicate messages). - Show an error message and option to retry when fetching of the MAM archive times out - Bugfix: `TypeError: o.getAttribute is not a function converse-chatview.js` (can cause messages to not appear). - #1679: Room invitation fails with singleton and random server assigned room name ## 5.0.0 (2019-08-08) - BOSH support has been moved to a plugin. - Support for XEP-0410 to check whether we're still present in a room - Initial support for the [CredentialsContainer](https://developer.mozilla.org/en-US/docs/Web/API/CredentialsContainer) web API - Allow for synchronous events. When a synchronous event is fired, Converse will wait for all promises returned by the event's handlers to finish before continuing. - Properly handle message correction being received before the corrected message - Groupchat default configuration now supports `list-multi` fields - Bugfix: Don't set `muc_domain` for roomspanel if `locked_muc_domain` is `true`. - Bugfix: Modal auto-closes when you open it for a second time. - Bugfix: `Cannot read property 'parentElement' of null` in shadow DOM - Take roster nickname into consideration when rendering messages and chat headings. - Hide the textarea when a user is muted in a groupchat. - Don't restore a BOSH session without knowing the JID - In the `/help` menu, only show allowed commands - Message deduplication bugfixes and improvements - Continuously retry (in 2s intervals) to fetch login credentials (via [credentials_url](https://conversejs.org/docs/html/configuration.html#credentials-url)) in case of failure - Replace `moment` with [DayJS](https://github.com/iamkun/dayjs). - New config option [auto_focus](https://conversejs.org/docs/html/configuration.html#auto-focus) - New config option [clear_messages_on_reconnection](https://conversejs.org/docs/html/configuration.html#clear-messages-on-reconnection) - New config option [enable_smacks](https://conversejs.org/docs/html/configuration.html#enable-smacks) - New config option [message_limit](https://conversejs.org/docs/html/configuration.html#message-limit) - New config option [muc_fetch_members](https://conversejs.org/docs/html/configuration.html#muc-fetch-members) - New config option [muc_mention_autocomplete_min_chars](https://conversejs.org/docs/html/configuration.html#muc-mention-autocomplete-min-chars) - New config option [muc_show_join_leave_status](https://conversejs.org/docs/html/configuration.html#muc-show-join-leave-status) - New config option [singleton](https://conversejs.org/docs/html/configuration.html#singleton) By setting this option to `false` and `view_mode` to `'embedded'`, it's now possible to "embed" the full app and not just a single chat. To embed just a single chat, it's now necessary to explicitly set `singleton` to `true`. - Re-add the previously removed config option [keepalive](https://conversejs.org/docs/html/configuration.html#keepalive) - New event: [chatBoxBlurred](https://conversejs.org/docs/html/api/-_converse.html#event:chatBoxBlurred) - New event: [chatReconnected](https://conversejs.org/docs/html/api/-_converse.html#event:chatReconnected) - #316: Add support for XEP-0198 Stream Management - #1071: x clear cross of same size as text - #1142: Up/down arrow shouldn't erase current message - #1196: Use alternative connection method upon connfail - #1296: `embedded` view mode shows `chatbox-navback` arrow in header - #1330: Missing room name in MUC invitation popup - #1445: Participants list uses big font in embedded mode - #1455: Avatar in controlbox status-view not updated - #1465: When highlighting a roster contact, they're incorrectly shown as online - #1476: Support OMEMO on by default for chats via a config variable - #1494: Trim whitespace around messages - #1495: Mentions should always include a URI attribute - #1502: Fatal error when using prebind - #1524: OMEMO libsignal-protocol.js Invalid signature - #1532: Converse reloads on enter pressed in the filter box - #1538: Allow adding self as contact - #1548: Add support for paging through the MAM results when filling in the blanks - #1550: Legitimate carbons being blocked due to erroneous forgery check - #1554: Room auto-configuration broke if the config form contained fields with type `fixed` - #1558: `this.get` is not a function error when `forward_messages` is set to `true`. - #1561: Don't call `clear` on local or session storage - #1572: In `fullscreen` view mode the top is cut off on iOS - #1575: MUC invitation autocomplete list doesn't appear - #1576: Converse gets stuck with spinner when logging out with `auto_login` set to `true` - #1579: Trim spaces at the beginning and end of a JID (when adding contact) - #1585: Upload files by pasting from clipboard - #1586: Not possible to kick someone with a space in their nickname - #1664: Blacklisting converse-profile makes the control box totally blank ### Breaking changes - The minimum required NodeJS version for making builds is now 8.9.0 - Rename `muc_disable_moderator_commands` to [muc_disable_slash_commands](https://conversejs.org/docs/html/configuration.html#muc-disable-slash-commands). - `_converse.api.archive.query` now returns a Promise instead of accepting a callback functions. - `_converse.api.disco.supports` now returns a Promise which resolves to a Boolean instead of an Array. - The `forward_messages` config option (which was set to `false` by default) has been removed. Use [message_carbons](https://conversejs.org/docs/html/configuration.html#message-carbons) instead. - Remove the `keepalive` configuration setting. It is now always implicitly `true`. - Remove the `expose_rid_and_sid` configuration setting. - A `prebind_url` is now mandatory when setting `authentication` to `prebind`. It's no longer possible to pass in `rid` and `sid` values to `converse.initialize. - Removed events `statusChanged` and `statusMessageChanged`. Instead, you can listen on the `change:status` or `change:status\_message` events on `_converse.xmppstatus`. - #1403: Rename show_chatstate_notifications to show_chat_state_notifications ### API changes - `_converse.chats.open` and `_converse.rooms.open` now take a `force` parameter to force maximizing (in `overlayed` view mode) or bringing a background chat into the foreground (in `fullscreen` view mode). Previously this was the default behavior. - `_converse.api.emit` has been removed in favor of [\_converse.api.trigger](https://conversejs.org/docs/html/api/-_converse.api.html#.trigger) - `_converse.updateSettings` has been removed in favor of [\_converse.api.settings.update](https://conversejs.org/docs/html/api/-_converse.api.settings.html#.update) - `_converse.api.roster.get` now returns a promise. - New API method [\_converse.api.disco.features.get](https://conversejs.org/docs/html/api/-_converse.api.disco.features.html#.get) - New API method [\_converse.api.connection.reconnect](https://conversejs.org/docs/html/api/-_converse.api.connection.html#.reconnect) ## 4.2.0 (2019-04-04) **Note:** This release introduces a hard requirement on [MAM:2](https://xmpp.org/extensions/xep-0313.html), specifically the requirement that the MAM archive ID matches the [XEP-0359 stanza-id](https://xmpp.org/extensions/xep-0359.html). Patches intended to make Converse work with MAM:1 will cause problems and unexpected behaviour due to the above requirement, which is not met with MAM:1. This will affect OpenFire users who use the [monitoring plugin](https://www.igniterealtime.org/projects/openfire/plugin-archive.jsp?plugin=monitoring) version 1.7.0 and below. You're advised to stay on Converse version 4.1.2 until an update to that plugin has been released. - Updated translation: af, cz, de, es, gl, he, lt, nl, nl_BE, ru - Upgrade to Backbone 1.4.0, Strophe 1.3.2 and Jasmine 2.99.2 - Remove dependency on (our fork of) Awesomplete - Prevent user from adding themselves as contact - Fix "flashing" of roster filter when you have less than 5 roster contacts - Fix handling of CAPTCHAs offered by ejabberd - Don't send out receipts or markers for MAM messages - Allow setting of debug mode via URL with `/#converse?debug=true` - Render inline images served over HTTP if Converse itself was loaded on an unsecured (HTTP) page. - Make sure `nickname` passed in via `_converse.initialize` has first preference as MUC nickname - Make sure required registration fields have "required" attribute - New config setting [autocomplete_add_contact](https://conversejs.org/docs/html/configuration.html#autocomplete-add-contact) - New config setting [locked_muc_domain](https://conversejs.org/docs/html/configuration.html#locked-muc-domain) - New config setting [locked_muc_nickname](https://conversejs.org/docs/html/configuration.html#locked-muc-nickname) - New config setting [show_client_info](https://conversejs.org/docs/html/configuration.html#show-client-info) - Document new API method [sendMessage](https://conversejs.org/docs/html/api/-_converse.ChatBox.html#sendMessage) - Don't filter out own device when sending an OMEMO message - #1149: With `xhr_user_search_url`, contact requests are not being sent out - #1213: Switch roster filter input and icons - #1327: fix False mentions positives in URLs and Email addresses - #1352: Add [Jed](https://github.com/messageformat/Jed) as dependency of `@converse/headless` - #1373: Re-add support for the [muc_domain](https://conversejs.org/docs/html/configuration.html#muc-domain) setting - #1400: When a chat message is just an emoji, enlarge the emoji - #1407: Silent errors when trying to use whitespace as MUC nickname - #1437: List of groupchats in modal doesn't scroll - #1457: Wrong tooltip shown for "unbookmark" icon - #1467: Fix rendering of URLs enclosed with sharp brackets such as <https://example.org> - #1479: Allow file upload by drag & drop also in MUCs - #1487: New config option [muc_respect_autojoin](https://conversejs.org/docs/html/configuration.html#muc-respect-autojoin) - #1488: In error message, fall back to JID if name is not available. - #1501: Don't prompt for a reason if [auto_join_on_invite](https://conversejs.org/docs/html/configuration.html#auto-join-on-invite) is `true` - #1507: Make message id and origin-id identical in order to fix LMC with Conversations - #1508: Minimized bookmarked chatboxes should not be always maximized after page reload. - #1512: Allow manual entry of jid even with [xhr_user_search_url](https://conversejs.org/docs/html/configuration.html#xhr-user-search-url). The JID input field is now also visible. To hide it simply hide `.add-xmpp-contact__jid` via CSS. ## 4.1.2 (2019-02-22) - Updated translations: af, cz, de, es, he, it, nl, nl_BE, pt_BR, zh_CN - Bugfix. Prevent duplicate messages by comparing MAM archive id to XEP-0359 stanza ids. - Bugfix. Open groupchats not shown when logging in after disconnection. - #1406: `TypeError: e.devicelists is undefined` when unchecking the "trusted device" checkbox ## 4.1.1 (2019-02-18) - Updated translations: af, cz, de, es, eu, ga, he, hi, ja, nb, nl_BE, zh_CN - New language supported: Esperanto - Accessibility: Tag the chat-content as an ARIA live region, for screen readers - Set releases URL to new Github repo - Rudimentary support for XEP-0333 chat markers - Better support for XEP-0359 `stanza-id` and `origin-id` elements. - Bugfix: restore textarea size after sending a message - Bugfix: MUC invite form not appearing - #1369 Don't wrongly interpret message with `subject` as a topic change. - #1405 Status of contacts list are not displayed properly - #1408 New config option [roomconfig_whitelist](https://conversejs.org/docs/html/configuration.html#roomconfig-whitelist) - #1410 HTTP upload not working if conversations push proxy is used - #1412 MUC moderator commands can be disabled selectively by config - #1413 Fix moderator commands that change affiliation - #1414 Prevent duplicate messages on MUC join - #1417 Margin between nickname and badge - #1421 Fix direct invite for membersonly room - #1422 Resurrect the `muc_show_join_leave` option - #1438 Update contact nickname when receiving a roster push - #1442 MUC read receipts causing empty lines ## 4.1.0 (2019-01-11) - Bugfix: MUC commands were being ignored - Bugfix: Multiple rooms shown active in the rooms list - Bugfix: Don't open chats when receiving messages without a `body` - Bugfix: Typing in the textarea can become very slow in large MUCs - UI: Always show the OMEMO lock icon (grayed out if not available). - Use `publish-options` with `pubsub#access_model` set to `open` when publishing OMEMO public keys and devices - Add a new `converse-pubsub` plugin, for generic PubSub operations - #1180 It's now possible to use OMEMO in a MUC (if it's members-only and non-anonymous) - #1334 Force avatar refetch when receiving `vcard-temp:x:update` - #1337 `send_chat_state_notifications` doesn't work in MUCs - #1353 Message Delivery Receipts not working because of the message "type" attribute - #1356 Make triangle icon usable - #1374 Can't load embedded chat when changing `view_mode` between page reloads - #1376 Fixed some alignment issues in the sidebar - #1378 Message Delivery Receipts were being sent for carbons and own messages - #1379 MUC unread messages indicator is failing - #1382 Message Delivery Receipts: Set store hint and type='chat' - #1388 implement muc-owner command `/destroy` ## 4.0.6 (2018-12-07) - Updated translations: ar, cs, de, es, eu, fr, gl, hu, id, it, ja, nb, pt_BR - Don't render http (i.e. non-TLS) resources - Bugfix: Converse caused `RID out of range` errors on Prosody - Bugfix: MUC messages sometimes appear twice after resync. - #1331 Fix missing checkmarks in old muc messages - #1333 Don't send receipt requests in MUCs - #1348 Font gets cut off in Firefox #1348 ## 4.0.5 (2018-11-15) - Error `FATAL: TypeError: Cannot read property 'extend' of undefined` when using `embedded` view mode. - Default paths in converse-notifications.js are now relative - Add a button to regenerate OMEMO keys - Add client info modal which shows Converse's version number - New config setting [theme](https://conversejs.org/docs/html/configuration.html#theme) - #141 XEP-0184: Message Delivery Receipts - #1033 Setting show_send_button to true didn't work - #1188 Feature request: drag and drop file to HTTP Upload - #1268 Switch from SASS variables to CSS custom properties - #1278 Replace the default avatar with a SVG version - #1288 Add CSS classes to differentiate between incoming and outgoing messages - #1305 added value 'all' for 'show_desktop_notifications' to notifiy even if converse.js is open - #1306 added option `notification_delay` - #1312 Error `unrecognized expression` in Safari - #1316 show version info in login dialog - #1317 Don't show errors for CSI messages - #1318 added values 'on' and 'off' for 'trusted' option which removes the "This is a trusted device" checkbox from the login form - #1319 Implement sending of presences according to XEP-0319: Last User Interaction in Presence ## 4.0.4 (2018-10-29) - Use [Lerna](https://lernajs.io/) to create the @converse/headless package - Use ES2015 modules instead of UMD. - #1252 Correctly reflect the state in bookmark icon title. - #1257 Prefer 'probably' over 'maybe' when evaluating audio play support. - #1259 Don't inform of affiliation change after user leaves MUC - #1261 File upload not working - #1264 Right Align badges of room occupants - #1272 Hiding MUC occupants leaves a blank space - #1278 Replace the default avatar with a SVG version ## 4.0.3 (2018-10-22) - New translations: Arabic, Basque, Czech, French, German, Hungarian, Japanese, Norwegian Bokmål, Polish, Romanian, Spanish - Bugfix. Converse continuously publishes an empty OMEMO devicelist for itself - Bugfix. Handler not triggered when submitting MUC password form 2nd time - Bugfix. MUC features weren't being refreshed when saving the config form - Don't show duplicate notification messages - New config setting [show_images_inline](https://conversejs.org/docs/html/configuration.html#show-images-inline) - Disable OMEMO when the user has indicated that Converse is running on an untrusted device. - #537 Render `xmpp:` URI as link - #1058 Send an inactive chat state notification when the user switches to another tab - #1062 Collapse multiple join/leave messages into one - #1063 URLs in the topic / subject are not clickable - #1140 Add support for destroyed chatrooms - #1169 Non-joined participants display an unwanted status message - #1185 Added Contact still shown as pending - #1190 MUC Participants column disappears in certain viewport widths - #1193 OMEMO messages without a `<body>` fallback are ignored - #1199 Can't get back from to login screen from registration screen - #1204 Link encoding issue - #1209 Bring color codes of users' status in line with other clients - #1214 Setting `allow_contact_requests` to `false` has no effect - #1221 Avoid creating a headlines box if we don't have anything to show inside it - #1222 Adding a bookmark should prefill the room name - #1228 Converse automatically visits links (to try and determine whether they're images to show inline) ## 4.0.2 (2018-10-02) - M4A and WEBM files, when sent as XEP-0066 Out of Band Data, are now playable directly in chat - Updated French and Spanish translations - Two new languages supported, [Hindi](https://hosted.weblate.org/languages/hi/conversejs/) and [Romanian](https://hosted.weblate.org/languages/ro/conversejs/) - #1176 Add config setting [send_chat_state_notifications](https://conversejs.org/docs/html/configuration.html#send-chat-state-notifications) - #1187 UTF-8 characters have the wrong encoding when using OMEMO - #1189 Video playback failure - #1220 Converse not working in Edge - #1225 User profile sometimes not displayed when libsignal-protocol.js is used - #1227 Login form does not work in Epiphany ## 4.0.1 (2018-09-19) - Use https://compliance.conversations.im instead of dead link tot st https://xmpp.net - New config setting [auto_register_muc_nickname](https://conversejs.org/docs/html/configuration.html#auto-register-muc-nickname) - New config setting [enable_muc_push](https://conversejs.org/docs/html/configuration.html#enable-muc-push) - #1182 MUC occupants without nick or JID created - #1184 Notification error when message has no body - #1201 Emoji picker appears when pressing enter ## 4.0.0 (2018-09-07) ## New Features - #161 XEP-0363: HTTP File Upload - #194 Include entity capabilities in outgoing presence stanzas - #337 API call to update a VCard - #421 XEP-0308: Last Message Correction - #497 XEP-0384: OMEMO encrypted messaging - #968 Use nickname from VCard when joining a room - #986 Affiliation changes aren't displayed in the chat - #1081 Allow for shift-enter to insert newlines - #1091 There's now only one CSS file for all view modes. - #1094 Show room members who aren't currently online - #1106 Support for Roster Versioning - #1137 Autocompletion and support for [XEP-0372 References](https://xmpp.org/extensions/xep-0372.html), specifically section "3.2 Mentions". - It's now also possible to edit your VCard via the UI - Automatically grow/shrink input as text is entered/removed - MP4 and MP3 files when sent as XEP-0066 Out of Band Data, are now playable directly in chat - Support for rendering URLs sent according to XEP-0066 Out of Band Data. - Geo-URIs (e.g. from Conversations) are now replaced by links to openstreetmap (works in reverse also) - Add a checkbox to indicate whether a trusted device is being used or not. If the device is not trusted, sessionStorage is used and all user data is deleted from the browser cache upon logout. If the device is trusted, localStorage is used and user data is cached indefinitely. - Initial support for [XEP-0357 Push Notifications](https://xmpp.org/extensions/xep-0357.html), specifically registering an "App Server". - Add support for logging in via OAuth (see the [oauth_providers](https://conversejs.org/docs/html/configuration.html#oauth-providers) setting) ### Bugfixes - Spoiler messages didn't include the message author's name. - Documentation includes utf-8 charset to make minfied versions compatible across platforms. #1017 - #1026 Typing in MUC shows "Typing from another device" - #1039 Multi-option data form elements not shown and saved correctly - #1143 Able to send blank message ### API changes - `_converse.api.vcard.get` now also accepts a `Backbone.Model` instance and has an additional `force` parameter to force fetching the vcard even if it has already been fetched. - New API method `_converse.api.vcard.update`. - The `contactStatusChanged` event has been renamed to `contactPresenceChanged` and a event `presenceChanged` is now also triggered on the contact. - `_converse.api.chats.open` and `_converse.api.rooms.open` now returns a `Presence` which resolves with the `Backbone.Model` representing the chat object. ## UI changes - #956 Conversation pane should show my own identity in pane header - The UI is now based on Bootstrap4 and Flexbox is used extensively. - Fontawesome 5 is used for icons. - User Avatars are now shown in chat messages. ## Configuration changes - Removed the `storage` configuration setting, use [trusted](https://conversejs.org/docs/html/configuration.html#trusted) instead. - Removed the `use_vcards` configuration setting, instead VCards are always used. - Removed the `xhr_custom_status` and `xhr_custom_status_url` configuration settings. If you relied on these settings, you can instead listen for the [statusMessageChanged](https://conversejs.org/docs/html/events.html#contactstatusmessagechanged) event and make the XMLHttpRequest yourself. - Removed `xhr_user_search` in favor of only accepting `xhr_user_search_url` as configuration option. - `xhr_user_search_url` has to include the `?` character now in favor of more flexibility. See example in the documentation. - The data returned from the `xhr_user_search_url` must now include the user's `jid` instead of just an `id`. - New configuration settings [nickname](https://conversejs.org/docs/html/configuration.html#nickname) and [auto_join_private_chats](https://conversejs.org/docs/html/configuration.html#auto-join-private-chats). ## Architectural changes - Extracted the views from `converse-muc.js` into `converse-muc-views.js` and where appropriate moved methods from the views into the models/collections. This makes MUC possible in headless mode. - Created a new core plugin `converse-roster.js` which contains the models for roster-related data. Previously this code was in `converse-core.js`. - VCards are now stored separately from chats and roster contacts. ## Other - Support for OTR (off-the-record) encryption has been dropped. ## 3.3.4 (2018-03-05) - Don't show bookmark toggles when PEP bookmarking not supported by the XMPP server. - Emojis are now sent in unicode instead of short names (also in MUCs) ### Bugfixes - Server field in `Rooms` tab showed MUC supporting clients instead of only components. - Avatars weren't being shown. - Bookmarks list and open rooms list weren't recreated after logging in for a 2nd time (without reloading the browser). - #1022 Status message not sent out on subsequent presences - #1024 null reference on MUC Invite - #1025 OTR lock icon disappears - #1027 `new Event` not supported in IE11 - #1028 Avoid `eval` (crept in via `_.template` from lodash). ### Translation changes - New locale: Bulgarian - Updated German, Russian, Chinese (traditional), Norwegian Bokmål and French translations. ## 3.3.3 (2018-02-14) ### Bugfixes - Attribute error when empty IQ stanza is returned for vCard query - In fullscreen view, sometimes a background MUC would come into the foreground when a new message appears inside it. ### Security fixes - CVE-2018-6591: Don't allow PEP bookmarks if `pubsub#publish-options` is not advertised by the server. In previous versions of converse.js, bookmarks sent to servers that don't support `pubsub#publish-options` were visible to all your contacts, even though they should be kept private. This is due to those servers simply ignoring the `pubsub#publish-options` directive and converse.js not checking first whether `pubsub#publish-options` is supported before setting bookmarks via PEP. More info here: https://gultsch.de/converse_bookmarks.html ### New features - XEP-0382 Spoiler Messages (currently only for private chats) - Listen for new room bookmarks pushed from the user's PEP service. - Simplified the [embedded](https://conversejs.org/demo/embedded.html) usecase. - No need to manually blacklist or whitelist any plugins. - Relies on the [view_mode](https://conversejs.org/docs/html/configuration.html#view-mode) being set to `'embedded'`. - The main `converse.js` build can be used for the embedded usecase. - Maintain MUC session upon page reload ### API changes - New API method `_converse.api.disco.getIdentity` to check whether a JID has a given identity. ### Configuration settings - `auto_reconnect` is now set to `true` by default. - New configuration setting [allow_public_bookmarks](https://conversejs.org/docs/html/configuration.html#allow-public-bookmarks) - New configuration setting [root](https://conversejs.org/docs/html/configuration.html#root) - The [view_mode](https://conversejs.org/docs/html/configuration.html#view-mode) setting now has a new possible value: `embedded` ### Translation updates - Chinese (Traditional), French, German, Portuguese (Brazil), Russian, Ukrainian ## 3.3.2 (2018-01-29) ### Bugfixes - Various fixes for IE11. - Could not register on Ejabberd 18. `"Missing attribute 'id' in tag qualified by namespace 'jabber:client'"` - #878 Ending slash in link not recognized - #921 FATAL error when `visible_toolbar_buttons.emoji = false` - #959 Add padding for the iPhone X (to the mobile CSS). - #993 `moment.format` is not a function error when sending a message. - #994 TypeError when using the `user.login` API. - #995 `ChildNode.replaceWith` is not available in Internet Explorer or Safari. Use `Node.replaceChild` instead. - #999 MUC Chat Send button causes page reload - #1000 Scroll to bottom when maximizing a chat room. - #1003 Handle bare MUC room JIDs ### Translation changes - Updated Dutch, French, Japanese, Norwegian Bokmål and Ukrainian translations ## 3.3.1 (2018-01-18) ### UI/UX changes - Add new configuration option [show_message_load_animation](https://conversejs.org/docs/html/configuration.html#show-message-load-animation) with a default value of `false`. The message load animations (added in 3.3.0) cause slowness and performance issues in Firefox, so they're now disabled by default. ### Translation changes - Updated Spanish and French translations. - New translation: "Simplified Chinese" - Rename `zh` language code to `zh_TW` and add Simplified Chinese as `zh_CN` ## 3.3.0 (2018-01-17) ### Bugfixes - #800 Could not register successfully in ejabberd 17.01 - #949 Don't flash the roster contacts filter (i.e. hide by default) - #951 Duplicate messages received in an MUC chat room. - #953 MUC "Features" displayed when exiting configuration - #967 Rooms list doesn't show when the server doesn't support bookmarks - Don't require `auto_login` to be `true` when using the API to log in. - Moment locale wasn't being set to the value passed via the `i18n` option. - In the chat heading, two avatars sometimes get rendered. - Refetch the roster from the server after reconnection. From the perspective of the XMPP server, this is an entirely new login, and therefore as per [RFC-6121](https://tools.ietf.org/html/rfc6121#section-2.1.6) the roster SHOULD be queried, making the client an "interested resource". Otherwise connected contacts might not get your presence updates. - The way the archive ID of a MAM message is specified, has changed. See https://xmpp.org/extensions/xep-0313.html#archives_id - Fixed error building DOM toggle_chats.html span.unread-message-count class attribute - Bugfix. In a MUC the `/help` command didn't render properly. - The `/voice` MUC command didn't set the right role in order to grant voice again. ### New Features - Emojis are now sent in unicode instead of short names - #314 Add support for opening chat rooms with a URL fragment such as `#converse/room?jid=room@domain` and private chats with a URL fragment such as `#converse/chat?jid=user@domain` - #828 Add routing for the `#converse/login` and `#converse/register` URL fragments, which will render the registration and login forms respectively. - New configuration setting [view_mode](https://conversejs.org/docs/html/configuration.html#view-mode) This removes the need for separate `inverse.js` and `converse-mobile.js` builds. Instead the `converse.js` build is now used with `view_mode` set to `fullscreen` and `mobile` respectively. - Fetch VCard when starting a chat with someone not in the user's roster. - Show status messages in an MUC room when a user's role changes. - In MUC chat rooms, collapse multiple, consecutive join/leave messages. - Performance improvements for rendering private chats, rooms and the contacts roster. - MUC Leave/Join messages now also show a new day indicator if applicable. ### API changes - New API method `_converse.disco.supports` to check whether a certain service discovery feature is supported by an entity. - New API method `_converse.api.vcard.get` which fetches the VCard for a particular JID. ### Configuration changes - `hide_open_bookmarks` is now by default `true`. ### UX/UI changes - #984 Improve loading of archived messages via "infinite scroll" - Use CSS3 fade transitions to render various elements. - Remove `Login` and `Registration` tabs and consolidate into one panel. - Show validation error messages on the login form. - Don't hang indefinitely and provide nicer error messages when a connection can't be established. - Consolidate error and validation reporting on the registration form. - Don't close the emojis panel after inserting an emoji. - Focus the message textarea when the emojis panel is opened or closed. - MUC chatroom occupants are now sorted alphabetically and according to their roles. ### Technical changes - Converse.js now includes a [Virtual DOM](https://github.com/snabbdom/snabbdom) via [backbone.vdomview](https://github.com/jcbrand/backbone.vdomview) and uses it to render various views. - Converse.js no longer includes all the translations in its build. Instead, only the currently relevant translation is requested. This results in a much smaller filesize but means that the translations you want to provide need to be available. See the [locales_url](https://conversejs.org/docs/html/configuration.html#locales-url) configuration setting for more info. - The translation machinery has now been moved to a separate module in `src/i18n.js`. - jQuery has been completely removed as a dependency (still used in tests though). ## 3.2.1 (2017-08-29) ### Bugfixes - Various IE11 fixes. - #907 Unnecessary login validation error when `default_domain` or `locked_domain` are set. - #908 Login form for inVerse is only 200px when `allow_registration` is set to `false`. - #909 Translations written as template literals [aren't parsed properly by xgettext](https://savannah.gnu.org/bugs/?50920). - #911 Use `getDefaultNickName` consistently to allow better overrides via plugins. - #912 `maximize` method in `converse-minimize` fails if the `controlbox` is not there. ## 3.2.0 (2017-08-09) ### New Plugins - New plugin `converse-disco` which replaces the original support for [XEP-0030](https://xmpp.org/extensions/xep-0030.html) and which has been refactored to allow features for multiple entities to be stored. ### New features and improvements - Add support for Emojis (either native, or via <a href="https://www.emojione.com/">Emojione</a>). - Add JID validation to the contact add form, the occupant invite form and the login form. - #896 Consistently use `XMPP username` in user-facing text (instead of JID, Jabber ID etc.). ### New configuration settings * The `visible_toolbar_buttons.emoticons` configuration option is now changed to `visible_toolbar_buttons.emoji`. * [use_emojione](https://conversejs.org/docs/html/configuration.html#use-emojione) is used to determine whether Emojione should be used to render emojis, otherwise rendering falls back to native browser or OS support. * [emojione_image_path](https://conversejs.org/docs/html/configuration.html#emojione-image-path) is used to specify from where Emojione will load images for rendering emojis. ### New events * ['discoInitialized'](https://conversejs.org/docs/html/development.html#discoInitialized) * ['afterMessagesFetched'](https://conversejs.org/docs/html/development.html#afterMessagesFetched) ### Code changes - Removed jQuery from `converse-core`, `converse-vcard` and `converse-roomslist`. - Remove `jquery.easing` from the full build. Was only being used by the [conversejs.org](https://conversejs.org) website, which has been updated to not rely on it. - All promises are now native (or polyfilled) ES2015 Promises instead of jQuery's Deferred. - #866 Add babel in order to support ES2015 syntax #### Bugfixes: - The domain was queried for MAM:2 support, instead of the JID. - Roster filter is not shown when all groups are collapsed. - When filtering, contacts in closed groups appear. - Room name wasn't being updated after changing it in the configuration form. - Server disco features were "forgotten" after logging out and then logging in again. - Don't show duplicate sent groupchat messages in Slack chat rooms. - Bookmark icon shown in the open rooms list when `allow_bookmarks` is to `false`. - It wasn't possible to add or remove bookmarks via the "Open Rooms" list. - #879 Text in links are converted to smileys leading to non-clickable links. - #899: Only touch `stamp-npm` if `npm install` was successful - #902 `make build` dependends on non-existing files ## 3.1.1 (2017-07-12) - Use a patched version of [awesomplete](https://github.com/LeaVerou/awesomplete) which doesn't render suggestions as HTML (possible XSS attack vector). [jcbrand] More info here: https://github.com/LeaVerou/awesomplete/pull/17082 ## 3.1.0 (2017-07-05) ### API changes - Deprecate the `updateSettings` method in favour of `_converse.settings.update`. [jcbrand] - Add a new API method `_converse.promises.add` for exposing promises to be used with `_converse.waitUntil`. [jcbrand] - The `message` event now returns a data object with `stanza` and `chatbox` attributes, instead of just the stanza. [jcbrand] ### New Plugins - New non-core plugin `converse-singleton` which ensures that no more than one chat is visible at any given time. Used in the mobile build: `converse-mobile.js` and makes the unread messages counter possible there. [jcbrand] - New non-core plugin `converse-roomslist`, which shows a list of open rooms in the `Rooms` tab of the control box. [jcbrand] ### New configuration settings - New setting for `converse-bookmarks`: [hide_open_bookmarks](https://conversejs.org/docs/html/configuration.html#hide-open-bookmarks) It is meant to be set to `true` when using `converse-roomslist` so that open rooms aren't listed twice (in the rooms list and the bookmarks list). [jcbrand] ### Github tickets resolved - #567 Unreaded message count reset on page load [novokrest] - #575 Logging out from converse.js doesn't clear the connection status from the sessionStorage [jcbrand] - #591 Unread message counter is reset when the chatbox is closed [novokrest] - #754 Show unread messages next to roster contacts. [jcbrand] - #864 Remove all inline CSS to comply with strict Content-Security-Policy headers [mathiasertl] - #873 Inconsistent unread messages count updating [novokrest] - #887 Make embedded images clickabe [jcbrand] - #890 Message carbons not sent out after reconnection [jcbrand] - #894 Room affiliation lost when connection jid and room presence jid are of different case [Rayzen] ### Miscellaneous - Support for [XMPP-0313 Message Archive Management](https://xmpp.org/extensions/xep-0313.html) has been upgraded to version 2. [jcbrand] - Show unread messages for minimized chats. [jcbrand] - Render nickname form when entering a room via invitation. [jcbrand] ## 3.0.2 (2017-04-23) *Dependency updates*: - Jasmine 2.5.3 - Phantomjs 2.1.14 - moment 2.18.1 - sinon 2.1.0 - eslint 3.19.0 - Don't rerender the text input when filtering contacts. [jcbrand] - Show the MUC server in a bookmarked room's info view (in the bookmarks list). [jcbrand] - Enable creation of `dist/converse-muc-embedded.js` build file for the embedded MUC room demo. [jcbrand] - Use `noConflict` to avoid polluting globale namespace with lodash and Backbone. [jcbrand] - Bugfix: MUC user's nickname wasn't being shown in HTML5 notification messages. [jcbrand] - Bugfix: OTR meta-messages were being shown in HTML5 notifications. [jcbrand] - CSS fix: Icon lock wasn't showing. [jcbrand] - #626 Open chat minimised [novokrest] - #842 Persistent muc room creation not working [jcbrand] - #848 OTR doesn't start when `cache_otr_key` is set to `true`. [jcbrand] - #849 `TypeError: _converse.i18n.locale_data is undefined` when reconnecting. [jcbrand] - #850 Roster not loading when group names are numbers. [jcbrand] ## 3.0.1 (2017-04-04) - Bugfix. Endless spinner when trying to log in after rendering the registration form. [jcbrand] - #585 Duplicate contact created due to JID case sensivity [saganshul] - #628 Fixes the bug in displaying chat status during private chat. [saganshul] - #628 Changes the message displayed while typing from a different resource of the same user. [smitbose] - #675 Time format made configurable. See [time_format](https://conversejs.org/docs/html/configuration.html#time-format) [smitbose] - #682 Add "Send" button to input box in chat dialog window. See [show_send_button](https://conversejs.org/docs/html/configuration.html#show-send-button) [saganshul] - #704 Automatic fetching of registration form when [registration_domain](https://conversejs.org/docs/html/configuration.html#registration-domain) is set. [smitbose] - #806 The `_converse.listen` API event listeners aren't triggered. [jcbrand] - #807 Error: Plugin "converse-dragresize" tried to override HeadlinesBoxView but it's not found. [jcbrand] - #811 jQuery wasn't being closured in builds. [jcbrand] - #814 Images from URLs with query strings aren't being rendered. [novokrest] - #820 Inconsistency in displaying room features. [jcbrand] ## 3.0.0 (2017-03-05) - **Breaking changes**: * Plugins must now be whitelisted. See the [whitelisted_plugins](https://conversejs.org/docs/html/configuration.html#whitelisted-plugins) setting. * Callbacks for `converse.on` now no longer receive an event object as first parameter. * The API has been split into public and private parts. The private API methods are now only available to plugins. For more info, read [developer API](https://conversejs.org/docs/html/developer_api.html) and the [plugin_development](https://conversejs.org/docs/html/plugin_development.html) documentation. * To prevent confusion the private, closured object, only available to plugins, has been renamed from `converse` to `_converse`. The public API is accessible via a global `converse` object. * The `keepalive` and `roster_groups` options are now set to `true` by default. * Templates are no longer stored as attributes on the `_converse` object. If you need a particular template, use `require` to load it. - Bugfix. After bookmarking a room for which a nickname is required, return to the nickname form. [jcbrand] - Show the chat states of room occupants. [jcbrand] - The no-jQuery build has been renamed from `converse.nojquery.js` to `converse-no-jquery.js` to fit the convention used for other build names. [jcbrand] - 50 is the new default [archived_messages_page_size](https://conversejs.org/docs/html/configuration.html#archived-messages-page-size) [jcbrand] - Better support for delayed delivery of presence stanzas (XEP-0203). [jcbrand] - The chat room `description` is now shown in the heading, not the `subject`. [jcbrand] - Chat room features are shown in the sidebar. [jcbrand] - Hide the chat room invite widget if the room is not open or if the room is members-only and the user is not the owner. [jcbrand] - Created a new non-core plugin `converse-muc-embedded` which embeds a single chat room into a page. An example can be found at https://conversejs.org/demo/embedded.html [jcbrand] - Use lodash instead of underscore.js [jcbrand] - Case insensitive matching of moderation commands. [jcbrand] - Add `/subject` as alias to `/topic` [jcbrand] - `message_carbons`, `play_sounds` and `allow_chat_pending_contacts` now default to `true` [jcbrand] - Improved roster filter UX. [jcbrand] - Render the login form again upon authfail. [jcbrand] - New promises API: [waitUntil](https://conversejs.org/docs/html/developer_api.html#waituntil) [jcbrand] - New configuration setting: [show_chatstate_notifications](https://conversejs.org/docs/html/configuration.html#show-chatstate-notifications) [jcbrand] - New configuration setting: [whitelisted_plugins](https://conversejs.org/docs/html/configuration.html#whitelisted-plugins) [jcbrand] - New configuration setting: [blacklisted_plugins](https://conversejs.org/docs/html/configuration.html#blacklisted-plugins) [jcbrand] - The API now no longer returns wrapped chatboxes (or rooms) but instead a Backbone.View object. This means the API of the returned object has changed. You're still able to do everything from before but now also much more. [jcbrand] - Allow JIDs not on the roster to be invited to a chat room. [jcbrand] - Bugfix. `TypeError: this.sendConfiguration(...).then is not a function` when an instant room is created. [jcbrand] - Ensure consistent behavior from `show_controlbox_by_default` [jcbrand] - #365 Show join/leave messages for chat rooms. New configuration setting: [muc_show_join_leave](https://conversejs.org/docs/html/configuration.html#muc-show-join-leave) - #366 Show the chat room occupant's JID in the tooltip (if you're allowed to see it). [jcbrand] - #610, #785 Add presence priority handling [w3host, jcbrand] - #620 `auto_away` shouldn't change the user's status if it's set to `dnd`. [jcbrand] - #694 The `notification_option` wasn't being used consistently. [jcbrand] - #745 New config option [priority](https://conversejs.org/docs/html/configuration.html#priority) [jcbrand] - #770 Allow setting contact attrs on chats.open [Ape] - #790 MAM retrieval broken [jcbrand] ## 2.0.6 (2017-02-13) - Escape user-generated input to prevent JS-injection attacks. (Thanks to SamWhited) [jcbrand] - #486 Honor existing mam user configuration [throwaway42] - #749 /me will show your contact's name in the sent field [jcbrand] - #774 Browser language (fr-fr or fr) is not detected by default [jcbrand] - #775 Anonymous login form is a text field instead of a push button [jcbrand] ## 2.0.5 (2017-02-01) - #743, #751, #753 Update to Strophe 1.2.12. SASL-EXTERNAL now has reduced priority, so it won't be prioritized above other auth mechanisms. [jcbrand] - #755: create composer.json to add this project in packagist.org [fabiomontefuscolo] - #758: Bugfix. Render all resize drag handles for ChatRoomView. [LeoYReyes] - #762 Allow chatting with users not in your roster. [Ape, jcbrand] - Bugfix. Cancel button shown while registration form is being fetched wasn't working properly. [jcbrand] - Bugfix. Login form wasn't rendered after logging out (when `auto_reconnect` is `true`). [jcbrand] - Bugfix. Properly disconnect upon "host-unknown" error. [jcbrand] - Bugfix. Minimized chats weren't removed when logging out. [jcbrand] - Security fix: Prevent message forging via carbons. (Thanks to ge0rg) [jcbrand] ## 2.0.4 (2016-12-13) - #737: Bugfix. Translations weren't being applied. [jcbrand] - Fetch room info and store it on the room model. For context, see: https://xmpp.org/extensions/xep-0045.html#disco-roominfo [jcbrand] - Bugfix. Switching from bookmarks form to config form shows only the spinner. [jcbrand] - Bugfix. Other room occupants sometimes not shown when reloading the page. [jcbrand] - Bugfix. Due to changes in `converse-core` the controlbox wasn't aware anymore of disconnection or reconnection events. [jcbrand] - Optimize fetching of MAM messages (in some cases happened on each page load). [jcbrand] - Fix empty controlbox toggle after disconnect. [jcbrand] - When inviting someone to a members-only room, first add them to the member list. [jcbrand] - New configuration setting [muc_disable_moderator_commands](https://conversejs.org/docs/html/configuration.html#muc-disable-moderator-commands) [jcbrand] ## 2.0.3 (2016-11-30) - #735 Room configuration button not visible. [jcbrand] - CSS fix for fadeIn animation. [jcbrand] ## 2.0.2 (2016-11-30) - #721 keepalive not working with anonymous authentication [jcbrand] - #723 Bugfix: Arrays in configuration settings were ignored. [jcbrand] - #734 Bugfix. `converse.rooms.open` ignored the `muc_nickname_from_jid` setting. [jcbrand] - Enable new rooms to be configured automatically, with a default config, via `rooms.open`. For details, refer to the [relevant documentation](https://conversejs.org/docs/html/developer_api.html#the-rooms-grouping) [jcbrand] - Bugfix: Chatboxes aren't closed when logging out. [jcbrand] - Bugfix: Trying to save data on the `ControlBox` model before `ChatBoxes` collection has its `browserStorage` configured. Causes `Error: A "url" property or function must be specified`. [jcbrand] - Don't open the controlbox on contact requests. [jcbrand] - Bugfix: Reconnection fails when original connection was never established. [jcbrand] - If a `credentials_url` is provided, then keep on attempting to reconnect when connection is down. [jcbrand] - Remove (undocumented) `callback` config parameter for `converse.initialize`. Instead, `converse.initialize` returns a promise which will resolve once initialization is complete. [jcbrand] - New event ['reconnecting'](https://conversejs.org/docs/html/development.html#reconnecting) [jcbrand] - New configuration setting [allow_bookmarks](https://conversejs.org/docs/html/configuration.html#allow-bookmarks) [jcbrand] - The `rooms.open` API method will no longer maximize rooms that are minimized (unless `maximize: true` is passed in). [jcbrand] ## 2.0.1 (2016-11-07) - #203 New configuration setting [muc_domain](https://conversejs.org/docs/html/configuration.html#muc-domain) [jcbrand] - #705 White content after submitting password on chat rooms [jcbrand] - #712 Controlbox clicks stop responding after auto-reconnect [jcbrand] - Removed shared state between tests. All tests are now isolated. [jcbrand] - Allow the context (i.e. `this` value) to be passed in when registering event listeners with `converse.listen.on` and `converse.listen.once`. [jcbrand] - New event ['rosterContactsFetched'](https://conversejs.org/do