Commit Graph

80 Commits

Author SHA1 Message Date
JC Brand 27a47c6ee8 fixes #3165
Use configured nickname in profile view in the control box.
Remove doc for the unimplemented `fullname` setting.
2023-06-02 07:24:37 +02:00
JC Brand 5f38a914b1 Update and clean up password-reset feature
- No need for it to be in a separate plugin
- Make all UI strings translateable
- Remove the "Are you sure?" prompt
- Add tests

Fixes #326
2022-12-27 21:07:23 +01:00
JC Brand 83351fb98f Add test case for adhoc commands 2022-10-18 10:10:13 +02:00
JC Brand fbe86e5af8 Create an ElementView base modal and use it for all modals
Modals are now all web components and are opened by component name.
2022-09-16 10:33:47 +02:00
JC Brand 7e2dd55c16 Use `api.elements.define` 2022-06-19 12:12:09 +02:00
JC Brand 1744dbc420 Move roomslist tests to the right plugin 2022-06-11 23:42:47 +02:00
JC Brand eb8ebea920 Move bookmarks list tests into separate file 2022-06-11 23:42:47 +02:00
JC Brand a57853156e Use our own `confirm` dialog consistently 2022-05-12 23:23:24 +02:00
JC Brand 8e1c3e47df Improve how the `muc_domain` setting is populated via disco
Remove brittle code that uses `querySelector` to get the rooms list model.
This code was causing a TypeError due to a race condition.
2022-04-09 10:57:55 +02:00
JC Brand 523566c218 Move MUC tests into their own files 2022-03-30 09:48:39 +02:00
JC Brand d2622f6fed Fixes #2557
Add the ability to send OMEMO corrections.

Refactor how OMEMO messages are sent to avoid having to override
`sendMessage` and thereby also allowing corrections of OMEMO messages to
be sent out.

Add two new hooks.
- getOutgoingMessageAttributes
- createMessageStanza
2022-03-13 10:02:34 +01:00
JC Brand ba52defdae Move nickname tests into a new file 2022-02-09 20:05:30 +01:00
JC Brand fa562cabae Don't fetch member list if not affiliated
Fixes #1426
2021-11-21 11:05:23 +01:00
JC Brand ecfc3e9fcf Implement support for XEP-0421 occupant ids
This let's us populate the `from_real_jid` attribute for messages in
cases where the user's nickname has changed.

Only save the occupant-id if the MUC supports it

Store all advertised features on the `chatbox.features` model.
This allows us to look up a feature without using the async
`disco.supports` API.

Updates #2241
2021-11-06 22:25:02 +01:00
JC Brand ca02bdcb61 Bugfix. Use real JID when setting up a device session in a MUC
Thanks to @orbitz, see: https://github.com/conversejs/converse.js/issues/1481#issuecomment-509183431

Updates #1481
2021-10-30 21:14:11 +02:00
JC Brand 521f3d88d2 Move MUC MAM tests into a new file 2021-10-13 20:01:09 +02:00
JC Brand 48f37aa1c0 Call `initialize` in CustomElement's `connectedCallback` method 2021-09-23 14:25:42 +02:00
JC Brand 7f2ab05f97 Move tests to separate file 2021-09-22 16:45:57 +02:00
JC Brand 9e48fdc91c Emit an event when a configuration setting gets changed 2021-09-21 17:08:30 +02:00
JC Brand caffcaaef2 Move occupant-related tests into new file 2021-09-14 22:03:10 +02:00
JC Brand 90ea092e4d Register a XEP-0316 MEP handler
Add caps element to the MUC join presence, so that the MUC MEP node can
know whether we're interested in receiving MEP messages.

Create info messages for any `conference-info` tags that contain `activity` tags.

Check for both `headline` and `normal` MEP messages (even though the XEP
only show `headline` examples), since `normal` messages can be archived
in MAM, but `headline` ones not.

Update the XEP-0372 reference-parsing code to take the `anchor`
attribute into consideration, specifically to check which text element
the reference applies to.

Add support for rendering XEP-0372 mentions in "info" messages and for
triggering HTML5 Desktop notifications for such mentions.

Background:
-----------

XEP-0316 describes a way for a MUC to send out PEP-like messages to MUC
participants. This feature can be used to describe custom activity happening
in the MUC.
2021-08-31 11:23:49 +02:00
JC Brand d0627f800c Clear unread message counters when chat becomes visible 2021-07-30 09:56:17 +02:00
JC Brand 0ccf25d986 Add support for controlling (e.g. pausing, looping) gifs
- Create new component `converse-gif`
- Draw gif in canvas and add controlls
2021-07-23 19:31:43 +02:00
JC Brand 7075c9feee Move modal test out of spec 2021-07-19 16:40:40 +02:00
JC Brand 5cce34eb40 Split push plugin up into multiple files 2021-07-19 16:40:40 +02:00
JC Brand 01efb02f9e Make sure XEP-0363 urls are also OMEMO encrypted
by re-using `ChatBox.prototype.sendMessage`.

updates #1182
2021-07-03 00:22:03 +02:00
JC Brand dff5f485c9 Split out MUC tests 2021-06-29 15:59:49 +02:00
JC Brand 9e21813251 Move tests into new file 2021-06-23 17:11:13 +02:00
JC Brand ad96db994e Fix failing tests on Travis 2021-06-23 10:52:32 +02:00
JC Brand fb6bafdf6c Styling: Fix an offset bug
That caused empty inline code hints to be considered valid.

Also update the tests that were failing due to the changes in the
previous commit.
2021-06-22 16:54:05 +02:00
JC Brand afd737f965 Fixes #2520 2021-06-22 12:50:50 +02:00
JC Brand 095d9b60cd Render audio from URLs in messages 2021-06-17 15:24:25 +02:00
JC Brand 33b426c79e Render videos from URLs in messages 2021-06-17 14:06:18 +02:00
JC Brand 5ea9564cc3 Add new configuration setting `prune_messages_above`
If set to a positive integer, the chat history will be kept to that size
by removing older messages.

This happens as new messages come in (as long as the chat isn't scrolled up)
and when the user scrolls down.

Also add the `pruning_behavior` setting
2021-06-17 11:39:20 +02:00
JC Brand dc711d494f Add a placeholder to indicate a gap in the message history
The user can click the placeholder to fill in the gap.
2021-06-17 11:35:06 +02:00
JC Brand 9fb92080f2 Get rid of the APIs to fetch chat views
This is largely a leftover from the Backbone.View days and makes less
sense now that the UI is componentized.

Ideally we don't want to call commands on the "views themselves, instead
we should be working on the the models and let the "views" update
themselves automatically.

Also, given that the `jid` attribute on the chat views might change,
especially when rendered declaratively in other frameworks like React,
a view might not be available at times where we previously might have
expected it to be (since it's been repurposed for a different JID).
2021-06-15 09:59:40 +02:00
JC Brand 17d9d2766d BUgfix. `undefined` used as store prefix 2021-06-11 16:53:19 +02:00
JC Brand 982586b0e6 Move protocol tests to plugin 2021-06-04 12:53:03 +02:00
JC Brand ae5a13bb06 Move emojis tests into plugins 2021-06-04 12:53:03 +02:00
JC Brand f3efbba26c Create `converse-message-form` component
More work on making bottom panel sub-components declarative

- Handle auto-completion in the converse-muc-message-form element
- Make message limit indicator a component
- Rename template
2021-06-04 12:53:03 +02:00
JC Brand 59d55b3526 Add option to deregister nickname when closing a MUC
By setting `auto_register_muc_nickname` to `'unregister'`
2021-06-02 22:06:57 +02:00
JC Brand 58b59fe263 Move more tests from spec folder 2021-05-12 12:41:19 +02:00
JC Brand f40bbbf145 Turn status plugin into folder
Remove the use of an override and add a hook `presenceConstructed` instead
2021-05-11 17:04:15 +02:00
JC Brand 1fc44b9d8e Turn caps plugin into folder.
Move more test files to plugins
2021-05-11 16:18:34 +02:00
JC Brand d0594a6bfc Add new test for <converse-muc> 2021-04-30 18:01:53 +02:00
JC Brand 754f1fcb25 Split smacks plugin up into multiple files 2021-04-28 18:50:54 +02:00
JC Brand b678df8d23 Move tests file to plugin folder 2021-04-22 14:41:17 +02:00
JC Brand a4b90e3ab2 Move tests to headless plugin 2021-04-21 12:25:28 +02:00
JC Brand 458c51b32d Move tests for message image rendering to new file 2021-04-21 12:06:10 +02:00
JC Brand 6af9142810 Move ping plugin into folder 2021-04-21 11:18:48 +02:00