JC Brand
34a4a70ae2
Move bookmarks into a modal
2022-10-01 10:52:08 +02:00
JC Brand
f791169f47
Fixes #3030
...
* The `confirm` modal didn't show the `title`
* Refactor the new modal code to not automatically show a close button in the footer.
2022-09-30 09:29:49 +02:00
JC Brand
782de0165f
Add hover effect to tabs in modal
2022-09-29 14:26:54 +02:00
JC Brand
e555469e3f
Move clearSession
function to utils
2022-09-29 14:26:54 +02:00
JC Brand
b4eb6c0994
Always enable carbons upon connection or reconnection
...
Previously we tried to remember whether carbons were enabled before by
saving a flag in the session storage, but apparently this resulted in
false positives and carbons then not being enabled.
With carbons not enabled, clients don't get sent messages.
I don't like the idea of enabling carbons every time the page reloads,
but the alternative is lost messages which is way worse.
I think the issue is that it's not possible to guarantee that the
session is always properly cleared. For example if Converse crashes, and
then the page is reloaded, the session will wrongly indicate that
carbons have been enabled, even though they won't be.
2022-09-29 14:26:54 +02:00
JC Brand
74cda3f4b4
Remove FA font files
2022-09-29 14:09:21 +02:00
JC Brand
aebd98cf0a
Stop using font-awesome fonts to render icons
...
This commit just does the last 1% of work necessary to get rid of font-awesome fonts.
fixes #1004
fixes #2639
2022-09-28 15:11:46 +02:00
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