JC Brand
f598b7d267
Fix function not being exported
2021-06-17 16:32:58 +02:00
JC Brand
619fb538d7
Show video download URL
2021-06-17 15:50:10 +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
2ac49fb9a5
Bugfix. Images being rendered when they shouldn't
2021-06-17 14:06:18 +02:00
JC Brand
b071a0e22f
MAM: Prevent multiple simultaneous queries when scrolling up
2021-06-17 11:39:20 +02:00
JC Brand
b6f2662ad7
Set 'scrolled'
flag on model.ui
...
This prevents it from being persisted across page loads and makes more
sense logically.
Also move markScrolled to utils and MUC unread messages indicator to bottom panel.
2021-06-17 11:39:20 +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
85a651ae79
Move functions to utils
2021-06-17 11:35:06 +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
14f0ed43c5
Add dayjs as dependency to @converse/headless
2021-06-16 14:47:34 +02:00
JC Brand
6f318bc86d
Fix reference error
2021-06-16 14:47:34 +02:00
JC Brand
bbc952b265
Fix MUC and headlines heaidngs, so that they still work
...
as ElementViews, since I ran out of time converting them to lit
components as well.
This reverts commit 1121a90af0
.
2021-06-15 11:09:34 +02:00
JC Brand
1121a90af0
Revert "Turn heading into a lit component"
...
This reverts commit 969b2f2e11
.
2021-06-15 10:52:17 +02:00
JC Brand
969b2f2e11
Turn heading into a lit component
2021-06-15 10:33:33 +02:00
JC Brand
8907adc236
Move method to utils
2021-06-15 10:03:10 +02:00
JC Brand
c8304497b5
Remove onStatusMessageChanged handler
...
It's no longer necessary and calls a method that doesn't exist anymore.
2021-06-15 09:59:40 +02:00
JC Brand
68f0be996f
Let chats be closed by calling close
on the models
...
Instead of on the views/components.
We still have `close` methods on the components, but they are just
event handlers and not external API methods to be called by other code.
Instead `close` should be called on the model.
2021-06-15 09:59:40 +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
ba1b712fee
Move functions to utils
2021-06-14 12:03:27 +02:00
JC Brand
543cf9066a
Bugfix. TypeError: cannot read property 'length' of undefined
2021-06-14 10:50:58 +02:00
JC Brand
bccd4a81b8
Add missing test file
2021-06-11 16:55:37 +02:00
JC Brand
17d9d2766d
BUgfix. undefined
used as store prefix
2021-06-11 16:53:19 +02:00
JC Brand
2bbb889196
Unfurls fix
2021-06-10 13:37:11 +02:00
JC Brand
ff1b6d3adf
MUC: Don't first check if we're registered before unregistering
...
The IQ stanza being sent to check was in any case incorrect and it
doesn't seem necessary.
2021-06-10 10:40:45 +02:00
JC Brand
39d60f05c3
Remove twitter link from homepage. Make navbar more visible
2021-06-10 10:07:19 +02:00
JC Brand
54d6a6af56
Unfurls: gracefully handle missing OGP data
2021-06-09 20:54:08 +02:00
JC Brand
878a3b49a7
Prevent multiple 'New messages' dividers from appearing
...
Would happen when scrolled up and a new message comes in
2021-06-07 19:58:55 +02:00
JC Brand
825e2643ae
Use flex-direction: column-reverse
...
On the `<converse-chat-content>` element. This removes the need for all
the manual scrolling.
Firefox finally supports this feature. Unfortunately Firefox ESR doesn't
yet, but I can't wait anymore.
2021-06-07 19:26:16 +02:00
JC Brand
9bcf5f2947
Scrolling fixes
...
* Remove extra `_markScrolled` function
* Only try to maintain scrolling position when some non-scrolling change has happened.
2021-06-07 17:54:38 +02:00
JC Brand
c966c49304
Fixes #2500
...
This wrongly stored value wasn't inlcuded in the published the bundle
because the libsignal store was used, which had the right value for the public key.
Instead, this value was used locally by being passed to the libsignal
session builder to verify signed prekey.
2021-06-07 13:49:21 +02:00
JC Brand
90dff612c7
Re-initialize chat components when jid attribute changes
2021-06-07 12:53:35 +02:00
JC Brand
9e4a4ba2ff
Add example for retractOtherMessage
2021-06-07 10:10:19 +02:00
JC Brand
e3612e8c62
Turn the chats into Lit components
...
Previously they were of type ElementView from @converse/skeletor
The ElementView component is merely a helper to allow us to eventually
migrate everything to Lit
2021-06-04 15:22:52 +02:00
JC Brand
06c4ded063
Get rid of impperative code to render help messages
...
in 1:1 chat
2021-06-04 13:41:01 +02:00
JC Brand
ff233a5b1c
Merge branch 'jcbrand/declarative-scrolling'
2021-06-04 12:59:52 +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
ubermanu
2f7dcb6bbc
Move decodeHTMLEntities util into headless
2021-06-03 19:23:49 +02:00
JC Brand
623deac3ec
Fix race condition in test
2021-06-03 18:36:26 +02:00
JC Brand
58d96c8594
Use intersection observer to remember scrolling position
2021-06-03 18:24:55 +02:00
Christoph Scholz
8701708b53
fix /nick command not working
2021-06-03 17:29:45 +02:00
JC Brand
279a3c3413
Add saveScrollPosition method on ChatContent
2021-06-03 15:32:39 +02:00
JC Brand
fe3e63d8c5
Declarative scrolling and rendering new messages indicator
...
- Increment `num_unread` when new messages appear while scrolled up
- Set scrolling state in model code (as opposed to view)
2021-06-03 14:16:03 +02:00
JC Brand
ec93e2fff3
Render chat messages loading spinner declaratively
...
instead of imperatively.
Add new non-persisted UI model for rendering UI changes. Currently only
being used for rendering the spinner
2021-06-03 00:02:33 +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
0756af2b30
Refactor chat close
methods
...
- Remove the shared base-class method.
- Trigger `chatBoxClosed` on the model
- Send CSN from the model, not the view
2021-06-02 17:55:52 +02:00
JC Brand
1598640c80
Remove line-breaks from message image markup
...
We use `white-space: pre-wrap` to render the messages, so line-breaks in
the markup add unnecessary space.
2021-06-01 14:56:43 +02:00
JC Brand
994e528b45
Bugfix. Properly escape | character in mentioned nicknames
2021-05-19 14:47:20 +02:00
JC Brand
06f03fc884
MUC: Store disconnection data on the session
2021-05-13 15:45:12 +02:00
JC Brand
698f3a7b15
Bugfix. Can't call tagName
on a Strophe.Builder object
2021-05-13 14:41:44 +02:00
JC Brand
c0c8fbac38
Wrongly passed data to the context parameter in hook
...
Causes `undefined` to be returned from `constructPresence` when `converse-caps` is not enabled
2021-05-13 12:15:39 +02:00
JC Brand
19b34231d4
JSDoc improvements
2021-05-13 11:44:19 +02:00
JC Brand
ad53a3c9a1
Message styling fix
...
Don't parse text that falls within XEP-0372 references ranges for
message styling hints.
2021-05-13 11:20:03 +02:00
JC Brand
58b59fe263
Move more tests from spec folder
2021-05-12 12:41:19 +02:00
JC Brand
d71ab6d30d
Bugfix. Need to pass in group name since this
is undefined
2021-05-12 12:26:16 +02:00
JC Brand
2b12f8e257
Use lodash-es everywhere
2021-05-12 12:14:28 +02:00
JC Brand
9e81fa495e
Upgrade pluggable.js and skeletor
2021-05-12 12:13:10 +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
7bd0d9a83f
Bugfix. Don't re-init bookmarks on reconnection
...
This causes an empty bookmarks list in the controlbox, because the
collection gets cleared (and then asynchronousy repopulated) while the
`bookmarksInitialized` promise stays `true` (resulting in a race
condition).
Alternative fix could be to clear the bookmarks and recreate the promise
before reconnecting but doesn't seem necessary to do all that work.
2021-05-07 12:27:29 +02:00
JC Brand
c8f0406c84
Refactor bookmark plugins
...
Mainly moving functions and methods to utils
2021-05-07 12:27:29 +02:00
JC Brand
18e3b618b4
Some light chat views refactoring
...
- Move `showModeratorToolsModal` method from view to utils
- Move `getNicknameRequiredTemplate` method from view to utils
- Move common `close` code to base class
2021-05-07 11:23:52 +02:00
JC Brand
fdc81fa4ea
Use .conversejs
instead of .converse-root
...
as the class that designates standalone Converse components.
2021-05-06 12:21:35 +02:00
JC Brand
dd609c1cec
Get the webpack dev server to work again
...
This required triggering the `converse-loaded` event in the entry.js
file, which means it won't be triggered for `@converse/headless` when
used in isolation.
Not ideal, but probably ok because consumers of `@converse/headless`
should probably import it into their own project in any case.
2021-05-06 12:07:44 +02:00
JC Brand
d0594a6bfc
Add new test for <converse-muc>
2021-04-30 18:01:53 +02:00
JC Brand
9c11e0dc32
Use .converse-root
class instead of #conversejs
id
2021-04-30 17:36:42 +02:00
JC Brand
4bdafb8ea3
Break Sass up into more files
...
And import where appropriate to allow for custom builds that are still styled properly
2021-04-30 17:36:40 +02:00
JC Brand
8966290369
Don't make bundled dependencies devDependencies
...
Otherwise you need to manually include them in downstream consumer projects
2021-04-30 14:17:46 +02:00
Shaun Wu
9ea8653ef7
Upgrade to Webpack 3
...
Had to make various other changes due to incompatibilities.
- Use the new `lit` package instead of `lit-html` or `lit-element`
- Drop `haunted` since it breaks the rules by specifying `type: module`
but then doesn't import with file extensions
- Use Sass Dart instead of node-sass (fixes #2445 )
- Upgrade Karma
2021-04-30 13:50:50 +02:00
Shaun Wu
1cb2b1f7a9
Adding configurable url history changing
2021-04-29 11:59:28 +02:00
JC Brand
754f1fcb25
Split smacks plugin up into multiple files
2021-04-28 18:50:54 +02:00
JC Brand
3d58b67517
Use @converse/openpromise
2021-04-28 18:35:08 +02:00
JC Brand
57ccf4c20e
Batched writes to IndexedDB
...
- Update to the latest @converse/skeletor (which uses mergebounce to batch writes)
- Flush storage before logging out
- Flush when reloading the tab
- Create initStorage method
2021-04-28 16:53:50 +02:00
JC Brand
4c804fcf2d
Wait on chatBoxesFetched
in API
...
Otherwise we can run into race conditions when using IndexedDB with
mergebounce
2021-04-28 12:05:40 +02:00
JC Brand
1f7fecab21
Make show_images
a prop of converse-chat-mesage-body
...
That way, when the setting changes and we call `requestUpdate` on
`converse-chat-message`, the body will rerender.
2021-04-26 12:08:16 +02:00
JC Brand
d86f3094b9
Fix failing test
2021-04-23 12:05:30 +02:00
JC Brand
4b737c1c93
Disable interval handler when running tests
2021-04-23 12:00:29 +02:00
JC Brand
ff14a706cf
Fix parameters signature for onDiscoInfoRequest
2021-04-23 11:49:45 +02:00
JC Brand
8e0701f7bb
Fix TypeError
...
The view isn't yet defined when we call `maybeFocus`. This is in any case
not the right place to call something like this.
2021-04-23 11:49:45 +02:00
JC Brand
a5d428c42d
Fix closing MUC from rooms list
...
View isn't defined if chat is in background
2021-04-23 11:42:30 +02:00
JC Brand
b2445d36d1
Bugfix. pretty_time
was undefined
2021-04-23 10:59:50 +02:00
JC Brand
db12e8a1e6
ping: use setInterval
to continuously send out pings
2021-04-22 16:27:19 +02:00
JC Brand
7b49296a24
Bugfix. Avoid creating an undefined store
2021-04-22 14:47:01 +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
JC Brand
7b7ec45db8
Move disco plugin into folder and import lodash utilities separately
2021-04-21 11:03:22 +02:00
JC Brand
f283dd848e
Try to fix failing test on Travis
2021-04-20 10:39:05 +02:00
JC Brand
b2f09f64c3
Use API to get room
2021-04-19 15:23:58 +02:00
JC Brand
3558936b46
Refactor message component to require less attributes
2021-04-16 13:11:30 +02:00
JC Brand
a129638fd1
Move MUC styling test to plugin folder
2021-04-16 09:45:10 +02:00
ubermanu
649e813ee8
Fixes an endless loop when styling code blocks with a bad format
2021-04-16 09:44:40 +02:00
JC Brand
943ad96d52
Move tests to plugin folder
2021-04-15 16:42:10 +02:00
JC Brand
fdde708327
Add a new MUC room state: converse.ROOMSTATUS.BANNED
...
This makes it easier to distinguish between being banned from a room, or
being disconnected for other reasons.
2021-04-15 12:34:00 +02:00
JC Brand
b439ae1cc4
Bugfix. Don't set fake nick...
...
when creating occupant from affiliation change stanza.
This means that when a presence for that occupant arrives, a duplicate
occupant is created (presumably because the original can't be find due
to the wrong nick being set).
2021-04-14 18:02:41 +02:00
JC Brand
cd9977c94e
Add an API for setting affiliations
...
This allows us to set affiliations in MUCs without having to first enter
the MUC in order to create a `ChatRoom` instance.
2021-04-14 10:44:31 +02:00
JC Brand
383f5c1d60
Extract affiliation-related methods out of the ChatRoom model
...
and put them together in a utils file
2021-04-14 10:44:31 +02:00
JC Brand
13e19eb7f8
Split omemo plugin into more files
2021-04-12 05:09:44 +02:00
JC Brand
42581b1d12
Split mam-views plugin into multiple files
2021-04-11 21:12:37 +02:00
JC Brand
573cc3e8d9
Split omemo plugin up into multiple files
2021-04-11 21:12:37 +02:00
JC Brand
a67603f689
Move various tests to plugin folders
2021-04-11 21:12:37 +02:00
Giuseppe Pignataro (Fasbyte01)
2b984e7851
Translated using Weblate (Italian)
...
Currently translated at 98.0% (501 of 511 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/it/
2021-04-09 13:32:58 +02:00
Kim Alvefur
e57bc316d1
Translated using Weblate (Swedish)
...
Currently translated at 99.6% (509 of 511 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/sv/
2021-04-09 13:32:35 +02:00
Hangyu Feng
ee0628085b
Translated using Weblate (Chinese (Simplified))
...
Currently translated at 98.0% (501 of 511 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/zh_Hans/
2021-04-09 13:31:44 +02:00
Xosé M
b24ece11e5
Translated using Weblate (Galician)
...
Currently translated at 100.0% (511 of 511 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/gl/
2021-04-09 13:31:08 +02:00
nautilusx
e5240c1a45
Translated using Weblate (German)
...
Currently translated at 100.0% (511 of 511 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/de/
2021-04-09 13:30:22 +02:00
JC Brand
00f1aae38d
Translated using Weblate (Afrikaans)
...
Currently translated at 100.0% (511 of 511 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/af/
2021-04-09 13:29:24 +02:00
JC Brand
548021b556
Only add view to chatboxviews
after this.model
has been set
...
Otherwise race-conditions arise where `this.model` is undefined
2021-04-08 10:17:26 +02:00
JC Brand
24e57244d1
Remove the messageSend
event
2021-04-08 10:17:02 +02:00
JC Brand
e7ddd07d56
Remove unused method
2021-03-31 14:27:44 +02:00
JC Brand
65742d32ec
Move icons template to shared folder
2021-03-29 13:16:32 +02:00
JC Brand
6d60a79369
MUC: Move function to utils
2021-03-26 11:34:45 +01:00
JC Brand
ccd60f76c3
Cleanup
...
- Move top-level functinos to utils files
- Get rid of unused/obsolete overrides
- Only import components there where they're used
- Bump version in package.json
2021-03-26 10:58:51 +01:00
ubermanu
3bfd60a3df
Move the httpToGeoUri util into core
2021-03-25 09:08:39 +01:00
JC Brand
3129dd9351
Bugfix. Scroll position not respected in MUC
2021-03-24 14:35:33 +01:00
JC Brand
c2a6b09a25
Use converse-rich-text
component to render unfurl descriptions
2021-03-24 12:41:17 +01:00
JC Brand
f897596215
Move files around to try and create some consistency and order
2021-03-24 12:41:17 +01:00
JC Brand
7f5a1d205e
Rename MessageText
to RichText
...
since it's now used to render more than just messages
2021-03-24 12:41:17 +01:00
JC Brand
b31eaadfab
Add option to converse-rich-text
for /me messages
2021-03-24 12:41:17 +01:00
JC Brand
bd8a57e0c3
Use the converse-rich-text
component to render the topic
2021-03-24 12:41:17 +01:00
JC Brand
65efe5ad43
Let the message body be rendered with the rich-text directive
2021-03-24 11:27:19 +01:00
JC Brand
41d82a54b6
Create rich text component and directive
2021-03-24 11:13:11 +01:00
JC Brand
864f5fd7d3
Rename file
2021-03-24 10:43:42 +01:00
JC Brand
1fd3e3676a
Update the MesageText class to not require a Model object
...
This allows us to use it to transform any piece of text and not just
text from a chat message.
2021-03-24 10:42:22 +01:00
JC Brand
6d01a3153e
Move relevant files into converse-rootview plugin folder
2021-03-22 14:34:18 +01:00
JC Brand
3c99f1f840
Fixes #2348
...
Don't automatically hide the first MUC opened in uni-view
2021-03-22 11:39:17 +01:00
JC Brand
b28594a976
Import toolbar styles in the component
2021-03-19 15:10:57 +01:00
JC Brand
3bdae848b3
Fix this
binding bug
2021-03-19 13:02:56 +01:00
JC Brand
fde371b90f
Remove apparently unnecessary tooltip bootstrap scss
2021-03-19 12:47:32 +01:00
JC Brand
453b993cfb
Split up CSS into more files
2021-03-19 12:47:32 +01:00
JC Brand
90ab412628
Move fullscreen styles into relevant plugin
2021-03-19 12:47:32 +01:00
JC Brand
1b91d9b69e
Move roster, bookmarks and minimize styles to plugin folders
2021-03-19 11:53:22 +01:00
JC Brand
79a4006a61
Move headlines scss to plugin folder
2021-03-19 11:48:48 +01:00
JC Brand
73c4c21533
Move MUC styles to plugin folder
2021-03-19 11:47:13 +01:00
JC Brand
b189fc83b0
Move chatbox styles to plugin folder
2021-03-19 11:43:16 +01:00
JC Brand
005cf4dc96
Move controlbox styles to plugin folder
2021-03-19 11:36:19 +01:00
JC Brand
f805f0d1ef
Move sass files into src and closer to the relevant components
2021-03-19 11:28:35 +01:00
JC Brand
9d5d94a8f4
Update to latest Skeletor with localforage-setitems optimization
2021-03-18 16:21:15 +01:00
JC Brand
e896361b2f
Remove the No message history available
message
...
It's misleading because it shows before MAM has finished (which also causes
flashing)
Showing it only after MAM has finished would be preferable but too much
work, so I'm removing it for now.
2021-03-17 12:36:56 +01:00
JC Brand
224336e232
Remove last backbone-like declarative event handler from the MUC view
2021-03-17 12:28:16 +01:00
JC Brand
05abb1dae9
Move method from view to model
2021-03-17 11:27:13 +01:00
JC Brand
8f21b020b1
Move method to view unread messages to relevant component
2021-03-17 11:20:13 +01:00
JC Brand
7126ee2df9
Add new component for navigating back to controlbox
...
in small viewports
2021-03-17 11:19:58 +01:00
JC Brand
19e701683d
Turn the controlbox toggle into a lit-element component
2021-03-17 10:37:19 +01:00
JC Brand
d548180f20
Add support for more languages, 'da', 'sw', 'th'
2021-03-17 10:20:19 +01:00
JC Brand
bd452a04e8
Fix more mangled i18n strings
2021-03-17 10:12:55 +01:00
JC Brand
001fe37059
Fix i18n message
...
Got mangled via search-and-replace
2021-03-17 09:48:16 +01:00
JC Brand
fff431737b
Add support for new languages 'fa', 'el', 'lt'
2021-03-17 09:41:58 +01:00
JC Brand
0aec04a9c9
Update po files
2021-03-17 09:34:00 +01:00
Tomáš Obšívač
cc0ddc92b3
Translated using Weblate (Czech)
...
Currently translated at 77.0% (389 of 505 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/cs/
2021-03-17 09:17:39 +01:00
Reza Almanda
2461d433e8
Translated using Weblate (Indonesian)
...
Currently translated at 60.7% (307 of 505 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/id/
2021-03-17 09:17:39 +01:00
JC Brand
859d4ff640
Translated using Weblate (Afrikaans)
...
Currently translated at 100.0% (505 of 505 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/af/
2021-03-17 09:17:39 +01:00
Efterpi Kavvadia
249f0b4e79
Added translation using Weblate (Greek)
2021-03-17 09:17:39 +01:00
Kornelijus Tvarijanavičius
02a821aa3c
Translated using Weblate (Lithuanian)
...
Currently translated at 62.3% (315 of 505 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/lt/
2021-03-17 09:17:39 +01:00
make-file
1b4787df99
Translated using Weblate (Persian)
...
Currently translated at 10.6% (54 of 505 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/fa/
2021-03-17 09:17:39 +01:00
make-file
6c39cbca5e
Translated using Weblate (Persian)
...
Currently translated at 10.6% (54 of 505 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/fa/
2021-03-17 09:17:39 +01:00
make-file
e3faa3c443
Added translation using Weblate (Persian)
2021-03-17 09:17:39 +01:00
aitzol berasategi
94e4ff9cdd
Translated using Weblate (Basque)
...
Currently translated at 80.9% (409 of 505 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/eu/
2021-03-17 09:17:39 +01:00
Vincent Finance
bb302b91c4
Translated using Weblate (French)
...
Currently translated at 100.0% (505 of 505 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/fr/
2021-03-17 09:17:39 +01:00
Lilian Wang
5dc3639831
Translated using Weblate (Chinese (Simplified))
...
Currently translated at 100.0% (505 of 505 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/zh_Hans/
2021-03-17 09:17:39 +01:00
Juanro49
c3f03e0e3e
Translated using Weblate (Spanish)
...
Currently translated at 93.0% (470 of 505 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/es/
2021-03-17 09:17:39 +01:00
Isak Holmström
3e6634c1e4
Translated using Weblate (Swedish)
...
Currently translated at 1.1% (6 of 505 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/sv/
2021-03-17 09:17:39 +01:00
Quentin PAGÈS
a1e788b958
Translated using Weblate (Occitan)
...
Currently translated at 82.7% (418 of 505 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/oc/
2021-03-17 09:17:39 +01:00
LL Magical
5450e0ccde
Translated using Weblate (Portuguese (Brazil))
...
Currently translated at 100.0% (505 of 505 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/pt_BR/
2021-03-17 09:17:39 +01:00
Xosé M
164d2898c9
Translated using Weblate (Galician)
...
Currently translated at 100.0% (505 of 505 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/gl/
2021-03-17 09:17:39 +01:00
Oğuz Ersen
884b5a7661
Translated using Weblate (Turkish)
...
Currently translated at 100.0% (505 of 505 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/tr/
2021-03-17 09:17:39 +01:00
Sergiu
76a64898ef
Translated using Weblate (Romanian)
...
Currently translated at 39.4% (199 of 505 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/ro/
2021-03-17 09:17:39 +01:00
zilliu
7e793f9514
Translated using Weblate (Chinese (Traditional))
...
Currently translated at 99.0% (500 of 505 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/zh_Hant/
2021-03-17 09:17:39 +01:00
zilliu
9555f7610d
Translated using Weblate (Chinese (Simplified))
...
Currently translated at 99.0% (500 of 505 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/zh_Hans/
2021-03-17 09:17:39 +01:00
Zijian Liu
e023c1b47d
Translated using Weblate (Chinese (Traditional))
...
Currently translated at 98.6% (498 of 505 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/zh_Hant/
2021-03-17 09:17:39 +01:00
Xosé M
9e089a5090
Translated using Weblate (Galician)
...
Currently translated at 100.0% (505 of 505 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/gl/
2021-03-17 09:17:39 +01:00
JC Brand
dde3ef206d
Update to Strophe with a SASL fix
2021-03-16 15:10:09 +01:00
JC Brand
c7c077074f
Chat: Move two methdos from component to the model
2021-03-16 11:01:10 +01:00
JC Brand
56a7050160
Don't insert newline after submitting message
2021-03-15 15:15:20 +01:00
JC Brand
d8daedea0d
Render the MUC view component declaratively
2021-03-15 12:34:56 +01:00
JC Brand
5006ebcbae
Bottom panel fixes
...
- Restore textarea size when it gets manually cleared
- Don't reload page when pressing send button
2021-03-12 10:14:34 +01:00
JC Brand
69a9adb459
Rename and move some files around
2021-03-12 09:58:17 +01:00
JC Brand
4646956922
Don't render hidden chats
2021-03-11 13:05:03 +01:00
JC Brand
2dbe50fc97
Refactor converse-muc-sidebar
...
- To only take the MUC JID as attribute
- To be responsible for closing itself
2021-03-11 11:34:52 +01:00
JC Brand
349b6d616d
Move functions for resizing the MUC sidebar to converse-muc-chatarea
2021-03-11 11:22:46 +01:00
JC Brand
4ca30c4b93
Create converse-muc-chatarea
component
2021-03-11 10:26:09 +01:00
JC Brand
4fd848ff3e
Bugfix. Use init settings to check for test env
2021-03-10 12:39:17 +01:00
JC Brand
d3ab68011a
Split core.js file into multiple smaller ones
...
Update storing of app settings. Store settings in a closured
`app_settings` object inside `@converse/headless/shared/settings`
Remove the `_converse.settings` object.
2021-03-09 14:11:28 +01:00
JC Brand
a921e303ac
Make sure chat scrolls down once image has loaded
2021-03-08 16:54:09 +01:00
JC Brand
0d9c7bade3
Don't propagate paste events in chat textarea
2021-03-08 11:20:32 +01:00
JC Brand
68d461bd42
Add the ability to show/hide unfurls
2021-03-05 18:42:14 +01:00
JC Brand
a24aa1487e
Add mailbox.org as sponsor
2021-03-05 15:28:23 +01:00
JC Brand
541613d1fe
Add more OGP metadata attributes to save
2021-03-04 17:56:24 +01:00
JC Brand
698ad90c43
Move insertIntoTextarea
methods from view to bottom panel component
...
That way we further decouple the various components and make it easier
to use them indepenent of one another.
2021-03-04 15:53:04 +01:00
JC Brand
3e5bd34141
Fixes #2381
2021-03-03 22:25:04 +01:00
JC Brand
a778f3866a
Show URL in unfurl card
2021-03-02 13:50:40 +01:00
JC Brand
c90b7a9691
Only render unfurl images from allowed domains
...
as specified by `show_images_inline` when it's set to an array of
domains.
2021-03-02 11:03:35 +01:00
JC Brand
1bd4572957
Restrict unfurl description to message_limit
setting
2021-03-02 11:03:35 +01:00
JC Brand
8dd8c7d1dd
Don't show unfurl card if there's nothing to show
2021-03-02 11:03:35 +01:00
JC Brand
64fd0ebcf6
Unfurls: Remove URL check
...
Url parameters mean that we don't get a match even when the URLs
actually match.
Could potentially use URI.js but gets cumbersome and since we restrict
to metadata coming from the MUC service (which we trust) I think it's OK
to remove it.
2021-03-02 11:03:35 +01:00
JC Brand
68ca5dd279
Unfurl: JID wasn't defined
2021-03-01 22:21:45 +01:00
JC Brand
9bac86fe1a
Don't add the same OGP metadata multiple times
2021-03-01 21:31:57 +01:00
JC Brand
16e1f95790
New config setting: muc_show_ogp_unfurls
2021-03-01 14:00:28 +01:00
JC Brand
426bf1d631
Tighten up security around unfurls
...
Dont render OGP metadata:
- for URLs not actually found in the original message
- from MUC participants (only from the MUC itself)
2021-03-01 11:35:12 +01:00
JC Brand
49837c2da4
Ensure that help messages are always shown
2021-02-24 16:34:46 +01:00
JC Brand
ce1c5ec7f6
Updates #2413
...
Wrap `history.start` in try/catch clause.
2021-02-24 15:48:11 +01:00
JC Brand
d8cab006c8
Move methods to utils
...
So that they can also be used independently of the components
2021-02-24 15:18:09 +01:00
JC Brand
d335a11119
Move more muc templates to plugin folder and use dashes
2021-02-24 09:51:37 +01:00
JC Brand
4d0012f672
Two small changes
...
- Fix controlbox spec to work with newer Jasmine
- Don't import Strophe in the non-headless code
2021-02-24 09:12:31 +01:00
JC Brand
5cab477bf4
fixes #2396 : @converse/headless wrongly depends on CustomElement
from the view layer
2021-02-24 07:36:10 +01:00
Dele Olajide
61dacfd2a5
fix #2409 - Integrate App Badging API for unread messages
2021-02-24 06:55:59 +01:00
JC Brand
8d74e063af
Don't import the entire chatview plugin for the muc-views one
2021-02-24 06:35:49 +01:00
JC Brand
ccfa00d7b8
mod_ogp now sends messages with type="groupchat"
2021-02-23 11:07:00 +01:00
JC Brand
f158a996f4
Turn converse-chatboxes plugin into folder
2021-02-22 21:07:54 +01:00
JC Brand
ae3b2c597d
Bugfix. Login form is shown after reconnection
2021-02-22 20:53:59 +01:00
JC Brand
f4bcfa5c44
Move various template files into plugin folders
2021-02-22 20:37:13 +01:00
JC Brand
16edc2954d
Add support for rendering unfurls via Prosody's mod_ogp
...
See here: https://modules.prosody.im/mod_ogp.html
2021-02-22 17:55:20 +01:00
JC Brand
c69eb6e1bf
Split ad-hoc commands code into smaller files
2021-02-16 13:51:59 +01:00
JC Brand
de4fd466dc
Move more MUC related views and components to muc-views plugin
2021-02-16 13:46:25 +01:00
JC Brand
c43969fece
Move MUC sidebar component to plugin folder
...
and fix update issue where occupants weren't being shown in the sidebar
when reloading the page
2021-02-12 15:01:00 +01:00
JC Brand
3ae71a45a2
Move chatbox template to chatview plugin folder
2021-02-12 14:38:26 +01:00
JC Brand
a8a2bb4681
Componentize the chat headings
2021-02-12 14:32:55 +01:00
JC Brand
906fa93812
MUC: combine two methods doing roughly the same thing
2021-02-12 14:32:55 +01:00
JC Brand
9ce4092a7c
Turn the bottom panel into a custom element
2021-02-12 14:32:55 +01:00
JC Brand
94bc087f50
Move MUC templates to the plugin folder
2021-02-11 20:25:20 +01:00
JC Brand
8b052e20b9
Fix tests by pinning to latest @converse/skeletor
2021-02-10 16:14:34 +01:00
JC Brand
45e0ba7f9b
Use this.listenTo
instead of api.listen.on
in components
...
So that event handlers are automatically deregistered when the component is dismounted.
2021-02-10 11:44:04 +01:00
JC Brand
a32b7b64bf
Fix display of lgoged-out controlbox in fullpage mode
2021-02-10 11:37:48 +01:00
JC Brand
78fb5935c7
Handle scrolling down in converse-chat-content
component
2021-02-09 18:20:52 +01:00
JC Brand
95c14e5a26
Don't pass chatview object to converse-chat-content
...
and any child components.
This makes it easier to use these components independently of one
another and the overarching view.
2021-02-09 16:40:00 +01:00
JC Brand
f81292e955
Bugfix in window state change handler
2021-02-09 15:48:21 +01:00
JC Brand
790caf9f5a
Render converse-chat-content
declaratively
2021-02-09 15:48:21 +01:00
JC Brand
18e48be5c4
Move CSS fixes before merge
2021-02-09 15:48:21 +01:00
JC Brand
3f24720633
Use repeat
directive to render roster items
2021-02-09 15:48:21 +01:00
JC Brand
28fb2472a4
Chats: use repeat
directive
2021-02-09 15:48:21 +01:00
JC Brand
22b6b4b502
minchats: Use utility methods instead of mixins
...
Various fixes to chat minimization
2021-02-09 15:48:21 +01:00
JC Brand
7abc81f8a4
MUC: Wait until occupants are fetched before updating them
2021-02-09 15:48:21 +01:00
JC Brand
ea6e370347
MUC: Fix error message logging
2021-02-09 15:48:21 +01:00
JC Brand
9f5dbad589
Turn roster into a custom element
2021-02-09 15:48:21 +01:00
JC Brand
7407a5a681
Fix auto-insert into converse-root
2021-02-09 15:48:21 +01:00
JC Brand
b8d710800a
Move more methods from ChatBoxView to shared base class
2021-02-09 15:48:21 +01:00
JC Brand
bb317d1abb
Combine RoomsPanel with RoomsList element
2021-02-09 15:48:21 +01:00
JC Brand
b31f334109
Fix event handlers in BookmarksView
2021-02-09 15:48:21 +01:00
JC Brand
05c00c5e1c
Call minimize on the model
...
Fix minimizing by listening to change event
Fixes around showing/hiding and minimizing/maximizing
Don't trigger a `show` event on the model to show a chat, instead rely
on the `hidden` attribute which causes a rerender and will show/hide
chats.
2021-02-09 15:48:21 +01:00
JC Brand
704b50fb3e
Turn HeadlinesBox into a custom element
2021-02-09 15:48:21 +01:00
JC Brand
fa7443be95
Don't render unnecessary components when not in overlayed view mode
...
Specifically `converse-minimized-chats` and `converse-controlbox-toggle`
2021-02-09 15:48:21 +01:00
JC Brand
d1c807ec79
Fixes to the bookmarks-list view
2021-02-09 15:48:21 +01:00
JC Brand
d6c0129c86
Various CSS fixes
2021-02-09 15:48:21 +01:00
JC Brand
fd2f253c09
Add .chatroom class to converse-muc and remove .logged-out to controlbox
2021-02-09 15:48:21 +01:00
JC Brand
a029ece808
Controlbox related bugfixes
2021-02-09 15:48:21 +01:00
JC Brand
e64798208f
Remove overrides of renderLoginPanel
...
which has also been removed earlier
2021-02-09 15:48:21 +01:00
JC Brand
be9016a081
Fix switching between login and register panels
2021-02-09 15:48:21 +01:00
JC Brand
75b8a16465
Fix CSS and work on declaratively rendering the controlbox toggle
2021-02-09 15:48:21 +01:00
JC Brand
a59920e6e5
Turn XMPPStatusView into the converse-user-profile component
2021-02-09 15:48:21 +01:00
JC Brand
6ca2183e24
Remove unneeded ControlBoxPane view
2021-02-09 15:48:21 +01:00
JC Brand
bb7d1c5cba
Turn login and register panels into element views
2021-02-09 15:48:21 +01:00
JC Brand
0ecd86ecf7
Turn MinimizedChatsView into an ElementView subclass
2021-02-09 15:48:21 +01:00
JC Brand
ccfb29f1b3
Turn BookmarksView into a custom element
2021-02-09 15:48:21 +01:00
JC Brand
b9bf577ccd
Turn rooms list into a custom element
2021-02-09 15:48:21 +01:00
JC Brand
7f869ea72d
Make the headlines panel an ElementView
...
Don't manually insert HeadlinesBoxView
we'll have to convert it to an ElementView
2021-02-09 15:48:21 +01:00
JC Brand
dea2eea919
Componentize dragresize
2021-02-09 15:48:21 +01:00
JC Brand
1949356ede
Work on turning chat views into custom elements
...
The eventual goal is to avoid UI-related stanza processing if the relevant chats
aren't in the DOM.
With the current architecture, chatboxes are created (and the stanzas
related to them processed) even if `#conversejs` isn't in the DOM.
* Initial work on making controlbox an element
* Create a shared base class
* Ceate ChatBoxViews proxy
* Update sass now that certain classes are moved to converse-chats element
2021-02-09 15:48:21 +01:00
JC Brand
eb65f75f45
Move headlines panel template to plugin
2021-02-09 15:48:21 +01:00
Ariel Fuggini
758c46c5aa
Fixes infinite loop bug when appending .png to allowed image urls
2021-02-09 15:38:06 +01:00
JC Brand
581f892613
Add JSDoc string
2021-02-06 11:26:25 +01:00
JC Brand
0a1cbf87b8
MUC: Ensure that MAM query is from latest cached messages
...
In some cases a race condition can occur where a new message is received
before the MAM query starts.
Previously, the newly received message would be considered the latest
message to query from, thereby causing a gap in the history.
2021-02-03 10:27:46 +01:00
JC Brand
5feaab9a95
MUC: Add test for showing cached messages before entering
2021-02-02 15:12:31 +01:00
JC Brand
9568d57e5f
Pass message attrs to shouldNotifyOfGroupMessage
2021-02-01 17:50:46 +01:00
JC Brand
5d1b5ac6c9
Notifiations: Add new hook shouldNotifyOfGroupMessage
2021-02-01 17:14:35 +01:00
JC Brand
50dda3244e
Move converse-notifications plugin into a folder and split up
2021-02-01 16:15:55 +01:00
JC Brand
7f851208aa
Move converse-roster plugin into folder and split up
2021-01-26 14:34:36 +01:00
JC Brand
7199e63fd7
Move converse-profile plugin into folder
2021-01-22 15:49:16 +01:00
JC Brand
85bd192f3c
Move converse-minimize into a folder
...
Also, use utility methods instead of adding a mixin to ChatBoxViews
(since we're planning on removing it).
2021-01-18 12:56:17 +01:00
JC Brand
1a88aff179
Decided to still collapse newlines...
...
and to solve the offset issue by replacing excessive newlines with
the zero-width space unicode character.
2021-01-18 12:18:33 +01:00
JC Brand
61bb0cfab7
Don't collapse newlines.
...
This causes index offset issues with any rich elements in the message.
We could try to fix the offsets, or alternatively replace the collapsed
newlines with spaces (to maintain the original offsets), but I don't
think it's worth the effort since I'm not sure that it's a good idea to
collapse newlines in the first place.
2021-01-18 11:27:01 +01:00
JC Brand
2c7b220453
RAI: Always send the presence to enable RAI when leaving a MUC
...
Looking at the Prosody code, it appears to be cheap since
Prosody will do nothing if you're already registered and this works
around a bug in mod_muc_rai where events aren't fired for each resource
of the same joined nick joining or leaving the MUC.
2021-01-15 13:55:40 +01:00
JC Brand
8bd2114d8a
MUC has its own method for sending markers
2021-01-15 11:39:09 +01:00
JC Brand
c0249b9c28
New configuration setting send_chat_markers
...
Can be used to fine-tune which (if any) of the XEP-0333 chat markers
will be sent out.
2021-01-15 11:11:38 +01:00
JC Brand
26c1c483da
MAM fix: Get newest page when not paging
...
This is done by using `before: ''` and filtering by `start`.
Otherwise we get the oldest page.
2021-01-13 13:33:28 +01:00
JC Brand
dcd1407109
New config setting mam_request_all_pages
2021-01-13 10:42:22 +01:00
JC Brand
b5b35a97c6
Bugfix. Ad-hoc form fields didn't render.
...
Also... clear info message before executing ad-hoc command so that user
gets visiual indication.
2021-01-11 15:06:51 +01:00
JC Brand
58c5e9676a
Handle forwarded mentions coming from the MUC, not the host
2021-01-08 18:25:36 +01:00
JC Brand
5e6a6ba6ac
Fix failing bookmark tests
2021-01-08 14:36:48 +01:00
JC Brand
9a2678450a
Move converse-bookmarks plugin into folder
2021-01-08 14:28:36 +01:00
JC Brand
bb8c7423b6
Ignore XEP-0437 indicators and forwarded mentions in a joined MUC
...
Otherwise the mentions will be counted twice.
2021-01-08 10:38:03 +01:00
JC Brand
2f5cc3b271
Bugfix. Make sure arguments are passed to all triggered events
2021-01-08 09:39:35 +01:00
JC Brand
11023dfef9
Don't clear occupants when leaving a MUC, only when closing it
...
Otherwise, when leaving as part of RAI and in a MUC where we only get
presence info based on probes, we lose occupant info that doesn't get
recreated when we rejoin.
2021-01-07 15:08:29 +01:00
JC Brand
2da2dbff71
Move converse-bookmark-views into folder
2021-01-07 13:29:55 +01:00
JC Brand
eaa67dab91
Bugfix. Filtering of contacts stopped working after refactoring
2021-01-07 12:52:56 +01:00
JC Brand
680701667e
Bugfix: Image modal didn't have src
attr on render
2021-01-06 15:07:19 +01:00
JC Brand
3f47c4d3dd
Use real JID in XEP-0372 references only when the MUC is non-anonymous
2021-01-04 14:24:23 +01:00
JC Brand
9a2ded5a9a
Remove global lodash
2020-12-29 15:12:45 +01:00
JC Brand
c1847a0b34
Use lit-html to render room description in modal
2020-12-29 12:49:09 +01:00
JC Brand
5e0b05356f
dragresize: use lit-html to render the template
2020-12-29 12:40:16 +01:00
JC Brand
12bb9375f4
Move converse-dragresize plugin to folder
2020-12-29 12:38:17 +01:00
JC Brand
f2ef8c7206
controlbox: render the toggle via lit-html
2020-12-29 12:23:39 +01:00
JC Brand
3f40098144
Render logo for registration form
...
Also fix showing of version number in login form
2020-12-29 12:16:23 +01:00
JC Brand
9372ad2dff
register: Use lit-html to render templates
2020-12-29 11:49:25 +01:00
JC Brand
e31fa1f7dd
Move converse-register plugin to folder
2020-12-29 10:36:59 +01:00
JC Brand
828eac1e72
rosterview: Move more lodash templates to lit-html
2020-12-28 21:20:18 +01:00
JC Brand
bb3ac36098
Render the roster container and filter with lit-html
...
This is the first commit that makes use of the `ElementView` from
Skeletor, which lets us turn views into custom elements.
2020-12-28 20:56:37 +01:00
JC Brand
794a709690
Move converse-rosterview plugin into folder
2020-12-28 19:46:40 +01:00
JC Brand
da131715ba
Use lit-html to render form fields
2020-12-28 18:25:51 +01:00
JC Brand
62dbb1062f
Add support for protoXEP: MUC mention notifications
2020-12-21 14:02:43 +01:00
JC Brand
6b9c718df7
RAI: Handle MUCs that start out hidden
...
When a MUC starts out hidden, we first need to join in order to find out
whether we're affiliated before we can know whether we should enable RAI
or join the MUC as usual.
2020-12-21 12:07:00 +01:00
JC Brand
986f7550f3
Clear messages upon reconnection as late as possible
...
To avoid a long empty flash while new messages are being fetched again.
2020-12-17 16:23:47 +01:00
JC Brand
1f476b8793
Move converse-mam plugin into own folder
2020-12-17 14:48:50 +01:00
JC Brand
8db1f3e3f3
MAM: refactor to functions instead of extending chats with methods
2020-12-17 14:10:28 +01:00
JC Brand
4349b016eb
MUC: Only clear messages when MUC is left intentionally
...
by the user, and not as part of cleanup during logout or when leaving
automatically in order to receive XEP-0437 activity indicators.
2020-12-17 14:00:18 +01:00
JC Brand
18e6ebe9af
MUC: Bugfix, don't set state to entered on unavailable presence
2020-12-17 13:04:24 +01:00
JC Brand
594332181b
Call 'clearMessages'
2020-12-17 13:04:24 +01:00
JC Brand
2121766623
More RAI improvements
...
- Add test for incoming RAI message
- Only enable RAI if the user is affilated in MUC being left
- Handle error presence indicating a resouce-constraint
- Don't unregister stanza handlers in `leave`, since we still want to
listen to RAI-related stanzas. Instead unregister upon the `destroy`
event.
2020-12-17 13:04:24 +01:00
JC Brand
fe365a6561
Move converse-roomslist plugin into folder
2020-12-16 14:05:34 +01:00
JC Brand
eed9ee8033
RAI: Add tests
2020-12-16 13:48:14 +01:00
JC Brand
e80afbfe39
Move MUC and stanza utils into shared and plugin-specific files
2020-12-14 16:30:13 +01:00
JC Brand
e8eea6324e
MUC: Send XEP-0333 markers with the MUC stanza id
...
See: https://xmpp.org/extensions/xep-0333.html#rules-muc
2020-12-14 16:30:13 +01:00
JC Brand
c457081597
WIP: Add support for XEP-437: Room Activity Indicators
...
- Send marker for last message before leaving and before subscribing to RAI
- clear cache of RAI-subscribed domains on reconnection
2020-12-14 13:11:24 +01:00
JC Brand
e6e416306e
Properly handle child nodes for api.presence.send
2020-12-14 13:11:24 +01:00
JC Brand
14c9b2f4ae
Clear message cache when closing a MUC
2020-12-11 13:57:16 +01:00
JC Brand
5a82478381
Declare sizzle as a dependency for @converse/headless
2020-12-10 17:13:40 +01:00
JC Brand
c855d2f4ce
Updates #2350 Avoid bundling Strophe twice
...
by not importing Strophe outside of @converse/headless
2020-12-10 16:32:01 +01:00
JC Brand
4ece50d07c
Add ability to pass child nodes to api.user.presence.send
2020-12-10 14:39:24 +01:00
JC Brand
23a4a20dc2
Bugfixes
...
Mesage versions modal didn't open on subsequent clicks
Autocomplete: avoid undefined error
2020-12-10 14:12:20 +01:00
JC Brand
bb3f52d2f2
Move the autocomplete code into ./shared
...
And remove it as a plugin.
2020-12-10 11:17:57 +01:00
JC Brand
9174be8ff3
Styling: Use only "local" offset for mentions
2020-12-09 18:09:38 +01:00
JC Brand
af2df84fc1
Styling: Fix offsetting of mentions mixed in with styles
2020-12-09 18:05:08 +01:00
JC Brand
8572c86941
Styling: Trim leading whitespace inside blockquote
...
As demanded by XEP-0393
2020-12-09 15:11:54 +01:00
JC Brand
58586ab2e4
Styling: quotes should start on newlines
...
And when nested, have no spaces between them.
2020-12-09 14:19:31 +01:00
JC Brand
240fab99f4
Split chatboxviews/index.js into multiple files
2020-12-08 10:16:34 +01:00
JC Brand
e31d5ba939
Move converse-headlines-view plugin into a folder
2020-12-08 09:50:17 +01:00
JC Brand
c0fafcec70
Move converse-muc into a folder
2020-12-08 09:50:17 +01:00
JC Brand
e8536ebc88
Move converse-muc-views plugin into own folder
2020-12-08 09:50:17 +01:00
JC Brand
2b6c56f148
Move converse-chatview plugin into folder
2020-12-08 09:50:17 +01:00
JC Brand
ecfaba0781
Move converse-chatboxviews plugin into folder
2020-12-08 09:50:17 +01:00
JC Brand
4c1813d6d4
Move converse-controlbox plugin into folder
2020-12-08 09:50:17 +01:00
JC Brand
e3ebde9741
Move converse-chat plugin into folder
2020-12-07 16:30:11 +01:00
JC Brand
01e03fc677
Bump to Strophe 1.4.1
2020-12-04 14:06:04 +01:00
JC Brand
d47c72711b
Document the button hooks
2020-12-03 16:56:54 +01:00
JC Brand
824bf2ed30
Move all plugin files to ./plugin folders
...
Rename converse-core.js to core.js
2020-12-03 16:41:15 +01:00
JC Brand
5dc7a442f6
New hook getMesageActionButtons
...
Allows 3rd party plugins to add more buttons to the message actions dropdown
2020-12-03 16:08:54 +01:00
Xavi Ferrer
f4b6b93b8b
update info messages visibility
2020-12-03 11:45:25 +01:00
JC Brand
160ab3452e
Rename ids of two modals
2020-12-03 11:43:04 +01:00
JC Brand
1a161ad2c7
Add api for managing modals
...
Set passed-in properties on modal
2020-12-03 11:36:02 +01:00
JC Brand
b18cc6bcc5
Move modals and their templates into ./modals/
2020-12-03 11:02:35 +01:00
JC Brand
34cba68432
Allow user modals to be opened from message headings
2020-12-03 11:02:35 +01:00
JC Brand
5a3aaeb056
Prevent default when opening chat via xmpp: URI
2020-12-03 10:45:08 +01:00
JC Brand
01ee942920
Styling fixes
...
* Calculate proper length for :geo URI matches
* Don't strip out line-break after quotes, instead use CSS `display: inline-block`
2020-12-01 10:21:21 +01:00
JC Brand
21dfd8a325
Bugfix: Set protocol after discovering connection methods
...
Otherwise if an endpoint was passed in with `converse.initialize`, then
that endpoint's protocol is (wrongly) used.
2020-11-30 18:21:33 +01:00
JC Brand
f5707c51c0
Update lt translations based on #1844
2020-11-30 14:49:30 +01:00
JC Brand
c608958eb3
Handle special case of two @
signs preceding a nickname
2020-11-27 22:06:22 +01:00
JC Brand
f86efca9a6
autocomplete: Use regex instead of hardcoded list...
...
to determine valid characters to form a boundary before an `@` mention
Also fixed an issue with mentions looking like they're part of URLs, by
first processing mentions separately.
2020-11-27 22:06:22 +01:00
Xavi Ferrer
8b9c97745f
Allow selected characters to precede a mention
2020-11-27 14:12:29 +01:00
JC Brand
35db01d316
Styling: Take offset into consideration when adding templates
2020-11-27 11:12:19 +01:00
JC Brand
30e784b8ec
Fix: use_system_emojis
was false
but unicode emojis shown in picker
2020-11-27 10:26:06 +01:00
JC Brand
33f62bb93c
Update changelog for previous revert and add title
for img emoji
2020-11-26 14:25:54 +01:00
JC Brand
a65da05094
Revert "fix emoji-picker for use_system_emojis==false"
...
This reverts commit e0088a45da
.
2020-11-26 14:19:30 +01:00
JC Brand
c002600ac5
Rename update_title
setting to show_tab_notifications
2020-11-25 16:30:52 +01:00
JC Brand
fb316ff010
Styling: Remove line-break at end of blockquote
...
since the DOM element breaks the line already
2020-11-25 16:12:00 +01:00
JC Brand
d2074afe9a
Document breaking changes to message transformation events
2020-11-25 14:53:27 +01:00
JC Brand
f9650f33be
Add support for XEP-0393 message styling
...
Fixes #1083
Directives are rendered as templates and their bodies are MessageText instances.
We thereby achieve the necessary nesting of directives (and other rich
elements inside directives) by letting each directive
body render itself similarly to how the whole message body is rendered.
2020-11-24 16:06:48 +01:00
JC Brand
357b6406e2
Postrelease
2020-11-23 10:29:42 +01:00
JC Brand
db1905fdb6
Release 7.0.2
2020-11-23 10:18:35 +01:00
nautilusx
c0e0a209e4
Translated using Weblate (German)
...
Currently translated at 100.0% (505 of 505 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/de/
2020-11-23 10:10:15 +01:00
Allan Nordhøy
77b737ad87
Translated using Weblate (Norwegian Bokmål)
...
Currently translated at 71.4% (361 of 505 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/nb_NO/
2020-11-23 10:10:15 +01:00
JC Brand
4e3a81d697
Fixes #2337
...
Newly opened headline chat isn't hidden by default in fullscreen view
Also include some CSS fixes for fullscreen headlines boxes
2020-11-19 13:20:02 +01:00
Yaron Shahrabani
2918a175ee
Translated using Weblate (Hebrew)
...
Currently translated at 75.6% (382 of 505 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/he/
2020-11-19 12:44:45 +01:00
Oğuz Ersen
b03ea65943
Translated using Weblate (Turkish)
...
Currently translated at 100.0% (505 of 505 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/tr/
2020-11-19 11:41:42 +01:00
Xosé M
f2e1b5983e
Translated using Weblate (Galician)
...
Currently translated at 100.0% (505 of 505 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/gl/
2020-11-19 11:41:13 +01:00
JC Brand
4520a04be9
Postrelease
2020-11-19 11:37:56 +01:00
JC Brand
85375842a8
Release 7.0.1
2020-11-19 11:23:04 +01:00
J. Lavoie
93d03106b6
Translated using Weblate (Portuguese (Brazil))
...
Currently translated at 99.8% (501 of 502 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/pt_BR/
Translated using Weblate (Spanish)
Currently translated at 90.6% (455 of 502 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/es/
Translated using Weblate (Finnish)
Currently translated at 86.0% (432 of 502 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/fi/
Translated using Weblate (Italian)
Currently translated at 100.0% (502 of 502 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/it/
Translated using Weblate (Polish)
Currently translated at 80.8% (406 of 502 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/pl/
Translated using Weblate (French)
Currently translated at 100.0% (502 of 502 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/fr/
2020-11-18 18:47:44 +01:00
JC Brand
3638056dd7
Added translation using Weblate (Swedish)
2020-11-18 18:47:44 +01:00
Tymofij Lytvynenko
503ec61a04
Translated using Weblate (Ukrainian)
...
Currently translated at 34.4% (173 of 502 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/uk/
2020-11-18 18:47:44 +01:00
zilliu
3fa5ae08d5
Translated using Weblate (Chinese (Traditional))
...
Currently translated at 99.2% (498 of 502 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/zh_Hant/
2020-11-18 18:47:44 +01:00
Balázs Meskó
c82c6961d7
Translated using Weblate (Hungarian)
...
Currently translated at 100.0% (502 of 502 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/hu/
2020-11-18 18:47:44 +01:00
Emmanuel Gil Peyrot
557ddf974f
Translated using Weblate (French)
...
Currently translated at 99.4% (499 of 502 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/fr/
2020-11-18 18:29:24 +01:00
nautilusx
e56cd9024d
Translated using Weblate (German)
...
Currently translated at 100.0% (502 of 502 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/de/
2020-11-18 18:28:55 +01:00
Andrey
4a692e510e
Translated using Weblate (Russian)
...
Currently translated at 83.0% (417 of 502 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/ru/
2020-11-18 18:28:26 +01:00
Allan Nordhøy
90ab459ad4
Translated using Weblate (Norwegian Bokmål)
...
Currently translated at 71.7% (360 of 502 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/nb_NO/
2020-11-18 18:27:13 +01:00
Quentin PAGÈS
3201b6865b
Translated using Weblate (Occitan)
...
Currently translated at 82.8% (416 of 502 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/oc/
2020-11-18 18:26:25 +01:00
ssantos
26d33aade2
Translated using Weblate (Portuguese)
...
Currently translated at 74.3% (373 of 502 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/pt/
2020-11-18 18:25:57 +01:00
Oğuz Ersen
fbf05e9d5e
Translated using Weblate (Turkish)
...
Currently translated at 100.0% (502 of 502 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/tr/
2020-11-18 18:25:34 +01:00
Xosé M
8f2a742a09
Translated using Weblate (Galician)
...
Currently translated at 100.0% (502 of 502 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/gl/
2020-11-18 18:21:52 +01:00
Christoph Scholz
e0088a45da
fix emoji-picker for use_system_emojis==false
2020-11-18 17:22:14 +01:00
JC Brand
76aa1ef3ec
make postrelease
2020-11-18 13:07:51 +01:00
JC Brand
357cad8a49
Release 7.0.0
2020-11-18 12:10:32 +01:00
JC Brand
74ee783685
Fixes #1471
...
Wait when fetching config, otherwise default of `true` for `trusted` is used erroneously.
2020-11-18 11:43:53 +01:00
JC Brand
2b59186d03
Don't render booleans in profile modal
2020-11-18 11:40:40 +01:00
bernard-ng
08684a7c51
Fixes #2277 Show nickname conflict error
2020-11-18 11:23:46 +01:00
JC Brand
144479428d
omemo: Move functions out of the plugin body
2020-11-18 10:49:31 +01:00
JC Brand
8a857e39f4
Move tab update to notification plugin
...
Updating tab notifications is not something that should be done in the headless part of Converse.
Don't update the tab title, having a favicon is enough.
2020-11-18 10:42:31 +01:00
Ariel Fuggini
6de07c5c29
Adds setting to toggle showing unread message counter in page title
2020-11-05 14:27:10 +01:00
JC Brand
cf94a5193a
Move dependency to headless package.json
2020-11-05 14:26:04 +01:00
JC Brand
d921242be7
Fix TypeError: Cannot read property 'chatbox' of undefined
2020-11-04 15:14:12 +01:00
JC Brand
bdb347b703
Updates #1471
...
OMEMO should not be enabled if the device is not trusted and also not if
the cache gets cleared on logout.
2020-11-02 13:22:00 +01:00
Dele Olajide
9f548ae8de
fix #1250 ( #2323 )
...
Fixes #1250 Change favicon color when unread messages
2020-11-02 09:10:07 +01:00
Dele Olajide
285bbbc2f1
fix #2321 ( #2322 )
...
When Converse runs inside a browser extension, enable browser sync and local storage for persistent storage
2020-10-30 12:51:55 +01:00
JC Brand
4f7ff1f3cf
headlines-view: Update to match changes to the normal chat view
2020-10-29 11:10:55 +01:00
JC Brand
fbc4adff99
Remove updateAfterMessagesFetched
method
...
In MUCs, messages are fetched too late in order for it to be practical
to wait for messages before rendering various parts of the MUC view.
Previously there was a bug, in the sense that `messages.fetched` was
`undefined` when being `await`ed in `updateAfterMessagesFetched`.
Once this was fixed, this issue became clear.
2020-10-29 10:37:29 +01:00
JC Brand
59e216ad34
muc: no need for message_queue
...
...
since we create the `fetched` promise earlier
2020-10-29 10:36:28 +01:00
JC Brand
c750748b8d
Only create new message models once messages have been fetched
...
Fixes #2241
2020-10-29 10:36:28 +01:00
JC Brand
c08ee00fcd
Enforce uni-view in headless code
...
When we're showing only one chat at a time, we want to make sure that
all other chats have their `hidden` flag set to `true`.
Previously this was done in chatboxviews, but given that we want to
render UI based on state, this should be done in the headless part of
Converse.
As a result of the changes, the `beforeShowingChatView` has been
removed.
2020-10-27 13:00:43 +01:00
JC Brand
00466cd550
Let the converse-loaded
event conform to the CustomEvent spec
...
https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent
2020-10-26 13:09:15 +01:00
JC Brand
5a2d361c81
Fixes #2293 : Message carbons not re-enabled when reconnecting
2020-10-23 21:58:47 +02:00
JC Brand
476bcfe7cc
Fixes #2137 : Show back arrow on mobile
2020-10-23 21:36:39 +02:00
JC Brand
4252a17f62
Fixes #1642 Add option to hide participant list by default
...
In the process, turn it into a component
2020-10-23 21:18:05 +02:00
JC Brand
8c1e886af9
Fixes #2302 Bookmarks get duplicated on server push
2020-10-23 16:22:40 +02:00
Xavi
15f5b185c3
Fix message reorder issue after edit ( #2300 )
...
* keep message in place after edition by assigning previous message original timestamp
* update time displayed to keep current behaviour
* add test to check a message remains in the same position of the history after being edited
* briefly describe pr changes in changelog
2020-10-23 15:07:56 +02:00
Xavi
5a4fbe12a9
Allow getHats method to be overriden ( #2308 )
2020-10-23 14:09:30 +02:00
Dele Olajide
81f0cb49bb
fix #2307 - BootstrapModal no more accessible to plugins
2020-10-23 13:55:28 +02:00
Dele Olajide
646542602f
fix #2304 - Custom emojis (stickers) images not shown
2020-10-21 11:01:08 +02:00
JC Brand
7803fd2335
Clear chat boxes when clearing cache
2020-10-20 14:28:09 +02:00
JC Brand
19dc66900d
Split the trusted
setting into two new ones:
...
- `allow_user_trust_override`
- `clear_cache_on_logout`
The `persistent_store` setting can now also be set to `sessionStorage`
The `trusted` settings was in effect playing the role of two separate settings
and implicitly affecting a third ('persistent_store').
By breaking it up, we make things more explicit and allow for new
configurations. For example, clearing the cache on logout, while using
some kind of persistent store.
2020-10-20 11:29:03 +02:00
JC Brand
5341a1ea49
MUC: warn instead of error when we're no longer connected
2020-10-19 12:07:28 +02:00
bernard-ng
86c4853b2e
#2290 format dayjs locale
2020-10-15 14:48:07 +02:00
Xavi
042aa3a73e
Create hats from vcard conditionally ( #2285 )
...
* allow the use of MUC affiliation, MUC role, and VCard roles as hats
* update setting documentation
* remove filter from VCard roles
* update naming and documentation to make explicit the use of XEP-317 Hats
* include muc_hats config option update to changelog
2020-10-15 09:51:19 +02:00
Bernard Ngandu
e49f97472a
#2280 notify changes to client on bookmark-update ( #2287 )
...
* notify changes to client on bookmark-update
* update XEP-115 caps verification string
2020-10-14 13:09:33 +02:00
JC Brand
395aa8cb95
Use JS to dynamically set height of img modal
2020-10-13 15:35:54 +02:00
JC Brand
e73d14304c
Fix image to modal (i.e. avoid scrollbars)
2020-10-13 15:05:57 +02:00
JC Brand
4295264a33
MAM: Maintain scroll position during upwards infinite scroll
2020-10-13 06:25:31 +02:00
JC Brand
48f119b673
MAM: use bare JID as by
attribute for archive-id
...
in 1:1 chats.
See: https://xmpp.org/extensions/xep-0313.html#archives_id
2020-10-13 04:48:21 +02:00
JC Brand
fb773d5d9b
smacks: Unregister smack stanza handlers on disconnect
2020-10-09 15:26:29 +02:00
JC Brand
ab0521ebfb
smacks: move functions out of plugin's initialize
method
2020-10-09 14:52:56 +02:00
ChaosKid42
c9ba42d0a0
regression of #1317 : Don't show errors for CSI messages ( #2276 )
...
* regression of #1317 : Don't show errors for CSI messages
* fix failing tests
2020-10-08 12:13:04 +02:00
JC Brand
af4fd3b0c2
MUC: connect with stored password, if available
2020-10-07 15:42:17 +02:00
JC Brand
7aee9c4432
muc: simplify api.rooms
methods.
...
- Let `api.rooms.open` call `api.rooms.get` directly, instead of indirectly via `api.rooms.create`
- Remove the `createChatRoom` function
- Also strip URI parts from JID in `api.rooms.get` and use utility method for doing so
2020-10-07 15:31:13 +02:00
Bernard Ngandu
be833631f3
#1829 add color for different omemo state ( #2260 )
...
* #1829 css var instead of hard coded colors
2020-10-07 11:32:29 +02:00
JC Brand
3f08201f5a
Remove unused code for the removed features section in occupants sidebar
2020-10-07 11:20:16 +02:00
Xavi
86c04b876b
Allow mention autocomplete to trigger right after a new line ( #2267 )
...
* catch all whitespace characters instead of just new line
2020-10-07 11:05:18 +02:00
Koen Van den Wijngaert
15aef10d5d
#2092 fixes room list update loop with locked muc domains ( #2268 )
...
* Only update the room list after shown.bs.modal
* add changes to CHANGES.md
* Move shown listener to initialize
2020-10-07 10:37:35 +02:00
Christoph Scholz
f68eb65cd7
check against own jid when detecting forged mam messages
2020-10-06 20:30:40 +02:00
JC Brand
30d550596b
Remove converse-rsm as whitelisted plugin and dependency
2020-10-05 21:09:02 +02:00
Christoph Scholz
07f2f285ff
Fix issue #2168
2020-10-02 12:07:48 +02:00
JC Brand
383b6a27c3
Render the brand heading as a component
2020-10-02 11:44:28 +02:00
JC Brand
24ddbefb63
Pass model's whole JSON to nickname form
...
Not strictly necessary for vanilla Converse, but makes life easier
downstream
2020-10-01 16:29:44 +02:00
JC Brand
8ef3b10d39
Don't hide chats when singleton
is true
2020-10-01 13:43:42 +02:00
JC Brand
6d9752645f
Replace lodash methods with native ones
...
filter
find
has
isEmpty
isString
isUndefined
noop
reject
uniq
2020-10-01 12:56:00 +02:00
bernard ng
efd4e50378
Fix #2231 add sort by query ( #2234 )
...
Use of lowercase letters and Infinity to avoid calculation errors when the index is -1
2020-10-01 12:06:35 +02:00
JC Brand
e761923cc9
Bump @converse/skeletor and localForage
2020-09-30 18:51:21 +02:00
JC Brand
ccd9146c6c
Bugfixes. Fix order of parameters and don't render undefined
2020-09-30 18:51:21 +02:00
JC Brand
02a9126ab6
Log errors when failing to save a message to storage
2020-09-30 18:51:21 +02:00
JC Brand
b5783c0668
Refactor converse-api.query
and the RSM class
...
- The `converse.api.query` method now no longer accepts an RSM instance.
- The RSM class now separates `query` parameters from `result` attributes
- Improve JSDoc docs and remove need to make `converse-rsm` a plugin
- Add typedefs for the options expected by RSM and `api.archive.query`
2020-09-30 18:51:21 +02:00
Christoph Scholz
e7a3bb87c6
Update pot and po files
2020-09-30 10:59:39 +02:00
Christoph Scholz
ff5a046922
Revert "fix i18n of label group name"
...
This reverts commit 5a874a4956
.
2020-09-30 10:59:39 +02:00
Christoph Scholz
5ea2ccfc17
fixes #2238 i18n not working reliably
2020-09-28 13:31:19 +02:00
Kim Alvefur
76b488a672
Bugfix. Promise.resolve is not a constructor
2020-09-28 10:49:14 +02:00
JC Brand
65ad33ec81
Let message component listen for changes...
...
and render directly from those
Instead of doing it higher up in the chat view (which requires more
function calls and iterating through all messages).
2020-09-27 10:31:53 +02:00
JC Brand
4ebd3caf48
element: Call super.disconnectedCallback
2020-09-27 10:31:53 +02:00
JC Brand
904a1394eb
Always render avatar via lit-html
...
Fixes #2244 by checking if image already is in the `data:` format.
2020-09-27 10:31:53 +02:00
JC Brand
5dac2d8873
muc-views: Use lit-html instead of lodash templates
2020-09-27 10:31:32 +02:00
JC Brand
889f4d4e15
Always render spinner via lit-html
2020-09-26 10:04:33 +02:00
JC Brand
0ca2e5ae08
Remove need for lodash templates in headless build
2020-09-26 09:58:34 +02:00
JC Brand
3fc6f7fa23
Fixes #1924
2020-09-25 18:46:45 +02:00
JC Brand
3a88831b9d
Bugfix. MUC tries multiple times to register nick
2020-09-25 15:30:53 +02:00
JC Brand
5350cb107f
Don't throw timeout errors for sent IQ#result or IQ#error stanzas
2020-09-25 14:12:12 +02:00
JC Brand
e82d6785c2
Update pot and po files
2020-09-24 09:02:58 +02:00
Emmanuel Gil Peyrot
fff9eeaa5c
Translated using Weblate (French)
...
Currently translated at 99.6% (500 of 502 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/fr/
2020-09-21 18:15:57 +02:00
zilliu
a436f9e117
Translated using Weblate (Chinese (Traditional))
...
Currently translated at 99.2% (498 of 502 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/zh_Hant/
2020-09-21 18:15:57 +02:00
Nikolaj Nielsen
e7606d133d
Translated using Weblate (Danish)
...
Currently translated at 0.1% (1 of 502 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/da/
2020-09-21 18:15:57 +02:00
Georgi Bachev
cd7817126e
Added translation using Weblate (Danish)
2020-09-21 18:15:57 +02:00
aevw
8aeaa54ba4
Translated using Weblate (Portuguese (Brazil))
...
Currently translated at 100.0% (502 of 502 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/pt_BR/
2020-09-21 18:15:57 +02:00
random r
9733d572de
Translated using Weblate (Italian)
...
Currently translated at 100.0% (502 of 502 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/it/
2020-09-21 18:15:57 +02:00
Xosé M
1d83c3b852
Translated using Weblate (Galician)
...
Currently translated at 100.0% (502 of 502 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/gl/
2020-09-21 18:15:57 +02:00
nautilusx
d42aa4d3c6
Translated using Weblate (German)
...
Currently translated at 99.2% (498 of 502 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/de/
2020-09-21 18:15:57 +02:00
JC Brand
78f8f73fea
Get rid of converse-uniview
plugin
...
Instead of overriding createChatBox, set 'hidden' flag via defaults
2020-09-21 18:08:48 +02:00
JC Brand
f79fd33302
Chat views: listen whether hidden
gets set and show/hide
2020-09-21 18:08:48 +02:00
Christoph Scholz
5a874a4956
fix i18n of label group name
2020-09-18 21:13:08 +02:00
JC Brand
b17e7cd55b
Fix rendering of SVG avatars
2020-09-18 15:09:55 +02:00
JC Brand
0a7dff442c
Fixes #2235
2020-09-18 15:09:55 +02:00
JC Brand
7330530d13
omemo: better error handling when some bundles can't be fetched
2020-09-18 15:09:55 +02:00
JC Brand
3af1ffc357
omemo: announce bundle info after publishing new device
2020-09-18 15:09:55 +02:00
JC Brand
32847e860f
pubsub: await IQ response when publishing
2020-09-18 15:09:23 +02:00
JC Brand
5949d29460
omemo: specify pubsub item id of 'current'
2020-09-18 15:09:23 +02:00
JC Brand
2e393d260b
Update to @converse/skeletor 0.0.2
2020-09-18 11:34:14 +02:00
JC Brand
5162f3f674
connection: Fix typo
...
This fixes anonymous logins
2020-09-18 11:34:03 +02:00
JC Brand
dd155220f0
Use declarative autofocus for login form
2020-09-18 11:33:24 +02:00
JC Brand
a0ae8135ce
Fixes #1481
...
For OMEMO in MUC, use the real JID of the user, not the MUC JID
2020-09-17 17:12:06 +02:00
JC Brand
a72ad8a53d
autocomplete: store query string on Suggestion instance
2020-09-17 14:55:52 +02:00
JC Brand
bbf4c08ffd
Prevent emoji from being inserted twice
2020-09-17 13:50:52 +02:00
JC Brand
ccbf049000
emoji: raise an error if getShortnameReferences
is called too soon
2020-09-17 12:24:18 +02:00
JC Brand
49cda74971
Update package-lock
2020-09-17 10:42:57 +02:00
JC Brand
7f2ba663d5
autocomplete: Use Array functions
2020-09-17 10:37:09 +02:00
JC Brand
0a82a177c4
OMEMO: ensure reflected encrypted MUC messages are identified
2020-09-17 10:37:09 +02:00
JC Brand
9fe7bfcd64
Include chatbox
in 'message' event data
2020-09-16 19:08:56 +02:00
dependabot[bot]
522e7706c1
Bump lodash from 4.17.15 to 4.17.19
...
Bumps [lodash](https://github.com/lodash/lodash ) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases )
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19 )
Signed-off-by: dependabot[bot] <support@github.com>
2020-09-15 15:43:41 +02:00
JC Brand
8d3cd687e7
Pass chatbox or _converse as context
2020-09-11 16:44:28 +02:00
JC Brand
bbcfc9f998
Bugfix. 2nd parameter for api.hook
is the context
2020-09-11 16:23:51 +02:00
JC Brand
71cfc7aba1
Bugfix. Include model when manually triggering change event
2020-09-11 16:01:15 +02:00
JC Brand
c0fc3c38f3
Bump to strophe 1.4 and add sprintf
2020-09-10 14:08:43 +02:00
JC Brand
543a29bcce
Fixes #2116
2020-09-10 11:08:27 +02:00
JC Brand
527c14b194
Fixes #2133
2020-09-10 10:51:57 +02:00
JC Brand
0e03640ebe
Fixes #2195
2020-09-10 10:17:13 +02:00
JC Brand
5d8e5468ba
Refactor converse-notifications to used parsed message attributes
...
instead of querying the stanza.
Also fixes a bug where typing notifications triggered an AttributeError
inside `shouldNotifyOfGroupMessage`
2020-09-10 10:10:59 +02:00
JC Brand
1873003624
Add new plugin converse-carbons
...
Fixes a bug whereby carbons weren't being enabled because the listener
for `afterResourceBinding` was registered before `converse.initialize`
was called,(which means it was removed as soon as `cleanup` was called
inside `converse.initialize`).
This shows that event `api.listen` API calls can/should only be called
inside the `initialize` method of a plugin (or at least once plugins
have been initialized).
2020-09-10 09:27:27 +02:00
JC Brand
2c042cc3fa
Fixes #2184 : Headless build relies on locale directory
...
Removed Jed from the headless build and instead let `__` call sprintf.
It's now up to downstream users for `@converse/headless` to decide
whether they want i18n support for the few translatable strings in that package
and to implement it themselves.
2020-09-10 08:55:38 +02:00
JC Brand
89d5c872b3
Don't mark messages as read when received in a hidden MUC
2020-09-09 16:23:53 +02:00
JC Brand
ffbab33a26
Create own occupant before setting connection_status
to ENTERED
...
This makes it possible to wait for the connection_status before trying
to call `getOwnOccupant` in plugins
2020-09-09 15:33:50 +02:00
JC Brand
b7654f1fc7
Move some View declarations out of the plugin initialize
method
...
Precursor to some refactoring planned
2020-09-09 15:02:40 +02:00
JC Brand
7c43d0435c
Refactor OMEMO.
...
- Add hooks to the stanza parsers so that plugins can do additional parsing.
- Change ChatBox instance methods to functions and use them for stanza parsing.
- Move encrypt and decrypt messages to `converse.env.omemo`
Apparently, when receving a 1:1 carbon message, a device was wrongly created
for the contact's device list, instead of our own.
2020-09-09 14:04:24 +02:00
Ariel Fuggini
fce337e352
New configuration setting: notify_nicknames_without_references
2020-09-09 13:11:45 +02:00
Xavi Ferrer
cc458e8d3b
use composedPath() instead as it is standarized and cross-browser suported
2020-09-07 15:51:34 +02:00
Xavi Ferrer
37662e8dc1
prevent dropdown from being closed after event retargeting when bubbling out of a shadowRoot
2020-09-07 15:51:34 +02:00
Christoph Scholz
6319f566dd
fix emojis in case use_system_emojis == false
2020-09-05 11:33:25 +02:00
JC Brand
0594c480ff
Only consider chat 'hidden' flag in relevant view modes
2020-09-04 13:13:07 +02:00
JC Brand
c3d8f12050
Make api.user.status
API methods async
...
So that `_converse.xmppstatus` is defined before trying to set the
status.
2020-09-04 13:13:07 +02:00
JC Brand
4e7b29e417
Make sure initialize
can be awaited...
...
before `converse.initialize` has been called
In the process, remove other "core" promises. There is no core or
community plugins code awaiting on them and since it's possible to
call `converse.initialize` twice, I'm not sure it makes sense to even have them.
Also removed unused error class IllegalMessage.
2020-09-03 17:07:44 +02:00
JC Brand
cb53c86711
Don't use date-separator
CSS class for the new messages indicator
2020-09-03 13:06:17 +02:00
JC Brand
c41bdac6c8
Some work on componentizing the minimized chats UI
2020-09-03 13:06:17 +02:00
JC Brand
d5c93eb024
Create converse-root
custom element
...
This element can be used to declaratively insert Converse into the DOM.
You can put `<converse-root>` into the DOM (e.g. by rendering it inside
a React component) before or afer Converse has loaded and/or has been
initialized.
2020-09-03 13:06:17 +02:00
JC Brand
00df8b45fd
Bugfix. Check for image extension if image_urls_regex fails
2020-09-02 21:14:50 +02:00
JC Brand
496b070d2a
If adding .png fallback fails, revert to original URL
2020-09-01 12:21:32 +02:00
Ariel Fuggini
3535d05ff5
Removes query params from urls as set in config
2020-09-01 07:12:52 +02:00
JC Brand
eb016a2aa4
try/catch clauses should contain as little code as possible
...
To avoid catching unrelated errors, which can mask other issues in the
code and make debugging more difficult
2020-08-31 20:56:43 +02:00
JC Brand
831a9fa224
Append .png
to failed image URLs without extensions
...
Otherwise Imgur URLs don't render
2020-08-31 20:43:54 +02:00
Ariel Fuggini
6adec9a8d2
adds option to whitelist image domains
2020-08-31 20:38:09 +02:00
Ariel Fuggini
f88960c561
Added tests and documentation
2020-08-31 17:13:24 +02:00
Ariel Fuggini
94af11d7e3
adds setting to set non-image-extension image urls
2020-08-31 17:13:24 +02:00
Christoph Scholz
4d9d391365
add CustomElement to env
2020-08-31 17:03:23 +02:00
JC Brand
9348ac80b5
Override isHidden
in converse-minimize
...
Otherwise `isHidden` might return true because `minimized` is set to
`true` but `converse-minimize` is not enabled.
2020-08-28 15:32:58 +02:00
Ariel Fuggini
ce2827a342
Close modal on backdrop click
2020-08-28 08:53:03 +02:00
Christoph Scholz
823134d762
add html to converse.env
2020-08-24 23:48:24 +02:00
Xavi Ferrer
d50151c9dd
fix BOSH session restore
2020-08-24 11:46:24 +02:00
JC Brand
8c799efc58
Don't minimize chats by clicking the header
...
This prevents the burger menu from opening
2020-08-24 11:28:48 +02:00
JC Brand
9f0dfcdbdb
Wait before firing roomsAutoJoined
event
2020-08-24 11:05:51 +02:00
JC Brand
f7ef334fac
Rename method to better describe what it does
2020-08-18 21:09:39 +02:00
JC Brand
7cbb1b23b2
When opening a dropdown, don't prevent other dropdowns from closing
2020-08-18 15:09:37 +02:00
JC Brand
372da2107a
Bugfix. Pass event to handler
2020-08-17 21:30:54 +02:00
JC Brand
d44875e138
Translated using Weblate (Afrikaans)
...
Currently translated at 99.2% (497 of 501 strings)
Translation: Converse.js/Translations
Translate-URL: https://hosted.weblate.org/projects/conversejs/translations/af/
2020-08-17 09:18:16 +02:00
JC Brand
cb2759a653
Regenerate pot and po files
...
Also fix i18n typo in src/converse-omemo.js
2020-08-17 09:03:44 +02:00
JC Brand
306b9fdd71
Updates #2193
...
Also remove top-level i18n declarations in components
2020-08-17 09:00:53 +02:00
JC Brand
11cd6b8321
Fixes #2193 .
...
Translations called at the top of template files don't apply, since the
trnaslations aren't yet fetched at that point.
2020-08-16 23:45:53 +02:00
JC Brand
3e8b3f73bd
Move pot and po files to src/i18n and regenerate
2020-08-16 22:54:45 +02:00
JC Brand
fbcd7cf737
Emoji picker: Make sure events persist across add/remove from DOM
2020-08-14 15:07:15 +02:00
JC Brand
d615cebcfe
Use proper i18n func
2020-08-13 15:37:50 +02:00
JC Brand
6e86fe3300
Fixes #1913 . Can't connect to non-ascii JID
2020-08-13 11:26:02 +02:00
JC Brand
09371712b0
Updates #1896 : Properly identify archived one-on-one messages
...
Also, rename attribute from `is_receipt_request` to `is_valid_receipt_request` to avoid confusion.
2020-08-13 11:09:22 +02:00
JC Brand
78bf07ecff
Make sure the registry is loaded before registering custom elements
2020-08-12 18:01:23 +02:00
JC Brand
cd84feefff
connection: Re-add debouncedReconnect
2020-08-12 17:50:18 +02:00
JC Brand
6fbb9463ee
Bugfix. Include nick in output messages
2020-08-12 14:39:10 +02:00
Xavi
7cdc592ed9
merge only relevant settings when calling api.settings.extend ( #2187 )
...
* merge only relevant settings when calling api.settings.extend
* test behaviour is the one expected and change doesn't break previous tests
2020-08-12 10:12:10 +02:00
Xavi
bd21f27f4f
fix api.settings.update warning message ( #2182 )
2020-08-10 08:06:24 +02:00
JC Brand
696c8e3522
Don't clear #conversejs
via innerHTML
...
It appears to break subsequent lit-html `render` calls on the
`#conversejs` element because lit-html still remembers parts from before
the element was cleared.
2020-07-30 12:17:23 +02:00
JC Brand
2fcce78144
Add a cleanup
hook
...
- Move view-related cleanup code out of core.
- Call `remove` on `_converse.chatboxviews` during cleanup
2020-07-30 11:04:07 +02:00
JC Brand
5579e82fb9
Add missing parameter
2020-07-29 16:22:20 +02:00
JC Brand
4927d561a5
Maintain scroll position when re-inserting #conversejs element
2020-07-29 09:56:22 +02:00
JC Brand
867f80e95e
Move MUC invite modal to its own file
2020-07-28 13:07:33 +02:00
JC Brand
23201991c1
Move the modal for adding MUCs to its own file
2020-07-28 13:07:33 +02:00
JC Brand
1898e7865d
Move the MUC list modal to its own file
2020-07-28 13:07:33 +02:00
JC Brand
16ca8044f8
Add experimental support for running the XMPP conneciton inside a shared worker
...
Still lacks inter-tab communication to update state across tabs, i.e.
when sending a 1-on-1 message in one tab, it doesn't appear in another,
because that information is not available via the websocket connection.
- Create a new `Connection` class that extends Strophe.Connection and
move related code from `converse-core.js` into this class.
- Store the session in localStorage when using a worker
- Move XEP-0156 code to connection.js
This allows us to initialize the connection without needing to know the
domain.
2020-07-27 12:43:47 +02:00
JC Brand
5e479d3bbb
OMEMO: Catch timing error while testing
2020-07-27 12:42:50 +02:00
JC Brand
29383301df
CSS: Fix horizontally centered spinner
2020-07-27 12:42:50 +02:00
JC Brand
a6c821be95
Use optional chaining
2020-07-24 11:50:54 +02:00
JC Brand
1419b4fc96
MUC: Add support for status code 333
2020-07-22 10:11:05 +02:00
JC Brand
cb50de16e2
Update 3rd party dependencies
2020-07-20 13:19:12 +02:00
JC Brand
1335a96dad
Bugfix. Handle emojis for which we don't have shortnames
2020-07-17 12:59:05 +02:00
JC Brand
0da8067129
MAM: Fix a MUC timing issue.
...
If a message comes in after joining the MUC but before the MAM messages
have been fetched, then converse-mam will query for MAM messages newer
than that message, causing an empty history (except for that one message).
2020-07-14 22:41:26 +02:00
JC Brand
712e14c4ee
Render chat history when a message gets removed
2020-07-14 18:14:17 +02:00
JC Brand
6a6d080679
Open images in a modal
2020-07-14 15:45:16 +02:00
JC Brand
6b62b51f11
Don't render images via u.addHyperlinks
...
It's currently only used by the MUC header to render URLs in the subject
2020-07-14 15:44:07 +02:00
JC Brand
91c130752c
chatview: Scroll down on image load
2020-07-14 14:17:54 +02:00
JC Brand
282ffc622f
Emoji picker fixes
...
- Don't replace entire textarea when entering a second emoji
- Focus emoji picker on tab completion when it's already opened
2020-07-14 11:38:00 +02:00
JC Brand
4de9816f24
Make sure emojis are initialized before parsing a message
...
for emoji related data
2020-07-13 15:45:37 +02:00
JC Brand
3519bfe7c6
Prevent duplicate minchats element
2020-07-13 15:45:32 +02:00
JC Brand
71add9c064
minimize: avoid unnecessary re-render
2020-07-13 14:31:59 +02:00
JC Brand
8f6b1f9049
Fix help menu icon colour and let it scroll
2020-07-13 11:17:29 +02:00
JC Brand
e6d8634194
Emoji picker: properly insert emoji upon click
2020-07-13 10:59:57 +02:00
JC Brand
756a85fb53
Emoji picker: make sure search results get properly updated
2020-07-13 09:55:01 +02:00
JC Brand
43ccc09cf2
Don't assume that converse is a global
2020-07-10 14:20:02 +02:00
JC Brand
cca5c17ccb
Fix failing test due to timing issue
2020-07-10 12:38:52 +02:00
JC Brand
d9fcb2b408
Hide emoji picker when sending a message via enter
2020-07-10 11:52:33 +02:00
JC Brand
5222881690
Bugfix. Properly determine when we've scrolled to top
2020-07-10 11:22:23 +02:00
JC Brand
d7bc129ce3
Get rid of Twemoji as a dependency
...
Fixes #2126
2020-07-10 11:21:45 +02:00
JC Brand
22573cf79b
Fixes #1637 aned #2130
2020-07-09 22:44:53 +02:00
JC Brand
1269cb7252
Don't attempt to fetch a VCard if we don't have a JID
2020-07-09 22:29:06 +02:00
JC Brand
8de55ce684
Updates #2087 . Only initialize minimized chats once
...
(i.e. not on reconnection)
2020-07-09 22:21:18 +02:00
JC Brand
99195ffd07
Fixes #2087
2020-07-09 22:11:04 +02:00
JC Brand
d0ba94e9df
Replace lodash templates with lit-html
2020-07-09 22:08:23 +02:00
JC Brand
54ffd90087
Make sure the emoji picker is focused...
...
the first time it's opened
2020-07-09 21:21:17 +02:00
JC Brand
45ebc70bfe
Let escape close the emoji picker
2020-07-09 21:14:13 +02:00
JC Brand
a014eca9e7
Add a renderImage
directive which handles errors
2020-07-09 20:51:32 +02:00
JC Brand
8943609d10
Refactor the body directive
...
Changes how rich message markup is generated and kept track of.
We now have a MessageText class which subclasses String and which keeps
track of the rich markup associated with the message.
2020-07-09 20:50:25 +02:00
JC Brand
78925b011d
Updates #2126
...
Wait for emojis to be initialized before parsing MAM messages
2020-07-08 14:08:08 +02:00
JC Brand
51ad0e3708
Fix toggling of the spoiler form
2020-07-08 11:33:06 +02:00
JC Brand
4bf823f6cd
Fix show/hide of spoilers
2020-07-08 10:22:20 +02:00
JC Brand
c3d6b64f4b
Turn the chat toolbar into a component
...
- Declaratively render the emoji picker dropup
- Got rid of converse-emoji-views
- Adapt OMEMO to the new buttons stuff
- Make emojis json global, to try and speed up tests
- omemo: Move functions to the top of the module
2020-07-08 10:17:06 +02:00
JC Brand
de1cc396bb
registry: avoid registering already registered custom elements
...
which throws and error and causes tests to fail
2020-07-07 13:18:50 +02:00
Ariel Fuggini
82357f7d97
Created a web component registry and exports components as modules in order to facilitate their customization
2020-07-07 11:44:34 +02:00
JC Brand
eafa1573e7
Prefix the icon anchors to make them more unique
2020-07-02 11:56:37 +02:00
JC Brand
f4f183bc46
Rendeer SVG icons inline
...
to overcome cross-site restrictions on using the `use` attribute of the `<svg>` element.
2020-07-02 01:21:40 +02:00
JC Brand
2cb1af3dea
Assign the Skeletor Events API to CustomElement
...
So that components can use `listenTo`
2020-07-01 09:25:14 +02:00
JC Brand
4f209e9f04
Bugfix. Updates #2091
2020-06-30 14:19:46 +02:00
JC Brand
f8efd94249
Don't smooth-scroll upon first appearance of the chat
...
it's annoying in overlayed view-mode where the user might be navigating
around the site.
Fixes #2091
2020-06-30 14:11:53 +02:00
JC Brand
061142e0c3
Bugfix. Don't scroll down if the user had manually scrolled up
2020-06-29 14:56:27 +02:00
JC Brand
9392377ffd
chatview: Remove unused template and method
2020-06-26 16:08:34 +02:00
JC Brand
9026062a32
Render chatbox message form via lit-html
2020-06-26 16:08:34 +02:00
JC Brand
22b2875b52
emoji-picker: Move picker content into another component
...
to avoid re-rendering them when non-relevant properties change
2020-06-25 14:31:01 +02:00
JC Brand
b7a40dad41
Add a title attribute to emojis in messages
...
so that you can see the shortname when you hover your mouse over an emoji.
2020-06-25 11:19:07 +02:00
JC Brand
1b520328fa
Wait until emojis are initialized...
...
before adding them to the message body
2020-06-25 10:27:29 +02:00
JC Brand
b3e34a0636
Turn the emoji picker into a web component
2020-06-25 10:27:29 +02:00
JC Brand
be20b8e1a0
emojis: fix rendering of custom emojis
2020-06-25 10:24:45 +02:00
Ariel Fuggini
77a0a01eff
Makes message with errors non-editable ( #2089 )
...
* Makes message with errors non-editable
2020-06-25 10:22:44 +02:00
Ariel Fuggini
346e5d896f
Updated selector
2020-06-25 10:19:56 +02:00