JC Brand
983d5ea09c
CSS: more tweaks to cut off vertical zalgo text
2022-09-28 12:53:35 +02:00
JC Brand
3720092c09
CSS fix: prevent zalgo text from going out of vertical bounds
...
(previous commit didn't work properly it seems)
2022-09-28 11:15:39 +02:00
JC Brand
36cb7a644e
CSS fix: prevent zalgo text from going out of vertical bounds
2022-09-28 11:01:36 +02:00
JC Brand
6293efd8ee
Avoid double wrapping with anchor tag and tweak unfurl CSS
...
to make it smaller on large screens.
2022-09-27 14:31:19 +02:00
JC Brand
5760379e0a
Only send out ping if we're actually authenticated
...
Fixes #2562
2022-09-20 15:01:55 +02:00
JC Brand
a4ee3085b7
MUC: Don't ping when we're not connected
...
Instead, wait for the `reconnection` event and then ping.
2022-09-20 15:01:51 +02:00
JC Brand
bd60861c1e
Don't import plugins' index.js
file from other plugins
...
Importing a plugin's `index.js` file from other plugins means that it's no
longer possible to remove that plugin by removing it from `src/converse.js`.
Instead, all plugins need to be imported in proper order from
`src/headless/headless.js` and `src/converse.js`.
Updates #3026
2022-09-20 14:48:20 +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
927add0707
Wrap requestUpdate
in an arrow function
...
Otherwise parameters from the event handler might be passed in to it,
causing potential weirdness.
2022-09-16 10:26:21 +02:00
JC Brand
8378ce739b
Remove unfurls for hyperlinks removed in a message correction
2022-09-12 10:05:54 +02:00
JC Brand
f9e6c3ff95
Fix groups auto-complete for add-contact modal
2022-09-12 09:28:37 +02:00
JC Brand
98ae55790d
Add a list
property to the converse-autocomplete
component
...
This can be used instead of the `getAutoCompleteList` function and
avoids unnecessary computation.
2022-09-10 15:20:05 +02:00
JC Brand
bb0ad432b2
Move add-contact modal to the rosterview plugin
2022-09-10 14:46:32 +02:00
JC Brand
55e3417df3
Move user settings modal to profile plugin
2022-09-10 14:37:01 +02:00
Keith Maika
92f71bafb2
Fix muc icons not working due to incorrect target element.
2022-09-08 11:21:53 +02:00
JC Brand
f1734dbb40
Bugfix. Trim whitespace after JID
2022-09-06 13:45:30 +02:00
JC Brand
0489e0f902
Remove unused function
2022-09-01 17:28:29 +02:00
JC Brand
0aa66fee99
CSS Fixes.
...
- Remove max height for MUC heading, otherwise subject text can get cut off
- Fix offset in mobile due to the background image
2022-08-27 16:40:13 +02:00
JC Brand
ed1099490c
Fix bug where auto-complete list would jump to top
2022-08-26 23:19:08 +02:00
JC Brand
a74bbd093f
Improve rendering of add-muc autocomplete suggestions
2022-08-26 22:58:46 +02:00
JC Brand
8ae4b6abd4
MUC: Set occupant ID from reflected message
2022-08-21 17:33:35 +02:00
JC Brand
ca3c8fc10b
Fixes #3007
...
Bugfix: Links in message become text when the message is edited
2022-08-20 11:12:59 +02:00
JC Brand
e8b9681a15
MAM: Always query for newest MAM messages after cached ones have been fetched
...
The `_converse.connection.restored` check ensured that 1:1 chats
manually opened after tab reload would never get their MAM messages
fetched 🤦
2022-08-17 13:53:31 +02:00
JC Brand
51516e38f6
Remove duplicate trigger of afterMessagesFetched
2022-08-17 13:38:57 +02:00
JC Brand
de72d6bae3
MUC: Move constants to separate file
2022-08-17 12:53:41 +02:00
JC Brand
0d9561e666
MUC: When closing, only send read marker if we were entered
...
When using RAI, it's possible to close a MUC without it being entered.
2022-08-17 12:49:44 +02:00
JC Brand
97be0bd8ac
Styling: Use zero-width space and maintain position of newline char
...
Fixes #2879
2022-08-15 15:56:15 +02:00
Debanjana Sarkar
7f99b24e28
Fix for #2870
2022-08-15 15:54:29 +02:00
Keith Maika
17e5804be7
Select the immediate body, not the one in fallback.
2022-08-13 10:00:40 +02:00
JC Brand
fd9e41a917
Fix failing test.
...
The fix from @joudinet was to call `this.items.create` on `DiscoEntity`,
however we still need to pass in the same `entity` model as before so that both
collections (`this.items` and `_converse.disco_entities`) have a
referene to the same model.
That way, when attributes like `.identities` are added on the entity,
it's available from both `this.items` and `_converse.disco_entities`.
2022-08-12 10:27:09 +02:00
Johan Oudinet
760f4f7dd1
Fix missing disco-items in session storage
...
This should fix #2925 .
2022-08-12 10:07:12 +02:00
JC Brand
5231262bda
Take from_real_jid
into account when determining sender
...
of MUC messages.
This is safer than simply checking nicknames when the XEP-0421 occupant-id is not
available.
2022-08-12 09:43:49 +02:00
JC Brand
34927b5b77
Use occupant_id
to get own occupant O(1) if available
2022-08-12 09:21:01 +02:00
JC Brand
7028286855
Restrict editing of MUC messages...
...
to ones with the same XEP-0421 occupant ID
2022-08-11 22:44:11 +02:00
JC Brand
342c75775b
Save the user's XEP-0421 occupant ID on the ChatRoom
2022-08-11 15:47:09 +02:00
JC Brand
f1cc8c85f4
Rename the stanza
TTL to stx
to avoid name clashes
2022-08-11 15:30:51 +02:00
JC Brand
c5588e3c49
MUC: Features are fetched in join
...
due to the `await this.refreshDiscoInfo()` call in `join`.
So should be safe to remove the check whether features were fetched.
2022-08-11 15:12:55 +02:00
JC Brand
3d19def3e7
Wait for emojis to be initialized before sending a message
2022-08-11 14:31:28 +02:00
JC Brand
53521c2236
Import utilty function directly and use optional chaining
2022-08-11 10:42:00 +02:00
JC Brand
22170450b4
Stop using zipObject
from lodash
2022-08-11 10:30:07 +02:00
JC Brand
f014db8b7a
Update nick
attr on ChatRoom when user nick changes
2022-08-11 10:23:16 +02:00
JC Brand
fe9345b7fc
MUC: only allow corrections with a matching sender occupant-id
...
Also, don't render messages from a sender with a different `occupant-id`
as a followup message.
2022-08-10 14:53:18 +02:00
JC Brand
d2bdce51e8
Add a tagged template literal function stanza
...
For creating XML stanzas from template literals.
2022-08-10 14:50:12 +02:00
JC Brand
cac92c3ebc
Bump copy-webpack-plugin
to 11.0.0
2022-08-09 13:33:12 +02:00
JC Brand
603f8349e8
Bump eslint and use @babel/eslint-parser
...
Also had to add a `babel.config.js` for it to work
2022-08-09 11:56:00 +02:00
JC Brand
5f6e70289b
Run npm update
to update headless deps
2022-08-09 11:06:44 +02:00
JC Brand
c716551fc8
Update postcss-loader to version 7.0.1
2022-08-09 11:00:38 +02:00
JC Brand
78634cdec3
Update deps with npm update
and then run make dev
2022-08-09 10:48:36 +02:00
JC Brand
45e989f048
Move converse-oauth
to the community-plugins
repo
2022-08-09 10:42:33 +02:00
JC Brand
0cfe2a18af
Apply eslint to all JS files in src/
2022-07-26 21:39:50 +02:00