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
f33fa1e9fc
Fix more tests
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
66abe309f6
Fix order for the minimized chats widget
2021-02-09 15:48:21 +01:00
JC Brand
336adac1ef
CSS: fix order of boxes in overlayed view mode
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
a294827211
Make sure Notification
spy has relevant methods
2021-02-02 10:30:13 +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