JC Brand
faa02b058d
Make sure messages Collection exists when we receive an error message
2020-02-10 18:41:32 +01:00
JC Brand
893ef10563
Use lit-html to render chat head
2020-02-07 16:09:12 +01:00
JC Brand
2235d4c432
Use lit-html to render MUC heading
2020-02-07 14:58:26 +01:00
JC Brand
15f15e9a09
Bugfix. Declare parameter
2020-02-07 13:34:22 +01:00
JC Brand
7d91b17552
Rename methods to clarify their purpose
2020-02-07 12:42:19 +01:00
JC Brand
fb9fe280ac
Updates to how dupes are detected.
...
- Collapse 3 different loops into one.
- Check all saved stanza ids in the parsed attrs, not just the archive id
- Remove check for archive id in converse-mam since it just duplicates what's now being done in converse-chat
- Don't use disco to check for support, XEP-359 mandates that services SHOULD advertise support,
which is not a strong enough guarantee that they do.
updates #1856
2020-02-07 12:35:45 +01:00
JC Brand
746fe441e2
Updates the message parsing.
...
Only set `id` once we've actually parsed the sender attributes,
otherwise `attrs.from` is `undefined`.
Use `Array.prototype.reduce` to generate stanza_ids attributes map.
Add `from_muc` attribute which contains the MUC JID
2020-02-07 12:12:38 +01:00
JC Brand
d2b6b41128
emoji-picker: Make sure that emojis as images are rendered properly
2020-02-06 16:27:44 +01:00
JC Brand
976c3d6006
Remove the formdata and promise polyfills
2020-02-06 15:20:29 +01:00
JC Brand
a1670462ca
Remove jquery and undersscore shims
2020-02-06 14:51:50 +01:00
JC Brand
9b279ad39d
Various emoji-picker fixes after recent refactoring
...
- Fix choosing of a categoy
- Make the highlight color darker (more visible)
2020-02-05 23:20:51 +01:00
JC Brand
9e86b5e8df
emoji-picker: Disable using the right arrow to initiate keyboard nav
2020-02-05 18:05:32 +01:00
JC Brand
4b3d330190
Avoid sending blur event when navigating the emoji picker
...
Also, listen to the `focusin` and `focusout` events, since they bubble,
allowing us to listen on the chatbox itself.
2020-02-05 16:08:54 +01:00
JC Brand
f854e477b7
Add placeholder to MUC invite modal input
2020-02-03 23:24:44 +01:00
JC Brand
7279f08a34
Update to newer skeletor which can return a promise on create
2020-02-03 23:24:44 +01:00
JC Brand
7d7c41a135
OMEMO: fix timing errors
...
- Use async/await
- Wait for devices to be created before continuing
2020-02-03 23:24:44 +01:00
JC Brand
f78837cbc5
Refactor identification of duplicates...
...
to rely on the parsed stanza attributes
This was to fix a bug whereby a full stanza was used to query for 1:1
messages with a full JID when the bare JID is stored.
We now are sure that the attributes we're using to query for duplicates
are the same attributes that get saved for a messages.
2020-02-03 23:24:44 +01:00
JC Brand
6430691c22
Fix template condition
2020-01-31 22:50:13 +01:00
JC Brand
6b4bdb636e
sidebar: Show shortened text in overlay mode
2020-01-30 22:03:08 +01:00
JC Brand
e3708bd598
Refactor headlines list to render everything with one view
2020-01-30 19:57:04 +01:00
JC Brand
c55a2171d5
Refactor headlines-view
...
* Use lit-html
* Let it look and behave similarly to other list views in the controlbox
2020-01-30 19:37:00 +01:00
JC Brand
73fa24a844
headlines: move view code into converse-headlines-view.js
2020-01-30 18:18:27 +01:00
JC Brand
ed287df43a
No need to set id manually
2020-01-30 17:36:55 +01:00
JC Brand
29aed314c1
Remove Backbone
...
* Remove backbone as NPM deps and from docs
* Remove backbone stuff from webpack
2020-01-30 17:36:55 +01:00
JC Brand
fef92ad99e
oauth: Replace VDOMView with HTMLView
2020-01-30 17:36:55 +01:00
JC Brand
8b5227761e
Replace roster filter VDOMView with HTMLView
2020-01-30 17:36:55 +01:00
JC Brand
39f189b1d1
Use HTMLView for login form
2020-01-30 17:36:55 +01:00
JC Brand
30d08d2bfe
muc-views: Remove features section...
...
and replace with button to open invite modal
2020-01-30 17:36:55 +01:00
JC Brand
9fb2056753
Move MUC invite widget into a modal
2020-01-30 17:36:55 +01:00
JC Brand
c6ac03e94e
Fix linting errors
2020-01-30 17:36:55 +01:00
JC Brand
d32c4c1f61
muc-views: replace VDOMView with HTMLView
2020-01-30 17:36:55 +01:00
JC Brand
9fb2d279e9
Replace VDOMView with HTMLView
2020-01-30 17:36:55 +01:00
JC Brand
393a96cf02
roomslist: remove Backbone
2020-01-30 17:36:55 +01:00
JC Brand
c4b48d701f
bookmark-views: Changes templates to lit-html
2020-01-30 17:36:55 +01:00
JC Brand
d310f1e3e4
emoji-views: use lit-html for templating
...
* declare picker events in lit-html
* init intersection observer only once
* don't set value manually
* don't manually add classes
* avoid x-scrollbar and 'undefined' in search input
2020-01-30 17:36:55 +01:00
JC Brand
11e219dd41
Update copyright
2020-01-30 17:36:55 +01:00
JC Brand
ad93407907
Replace modal templates with lit-html components
2020-01-30 17:36:55 +01:00
JC Brand
a8104d7498
Add Skeletor as dependency
2020-01-30 17:36:55 +01:00
JC Brand
50e6c8a082
roster: refactor to use async/await
2020-01-30 17:36:55 +01:00
JC Brand
b08f5d355b
roster: avoid race-condition by waiting for contacts to be fetched
...
before creating any new ones
2020-01-30 17:36:55 +01:00
laszlovl
cde6b093c0
Fix incrementMsgCounter cleaning up after itself
2020-01-27 17:53:36 +01:00
Christoph Scholz
a472a0806e
show headline messages in controlbox
2020-01-23 11:32:15 +01:00
JC Brand
464c68a3b6
Fix typo
2020-01-22 15:58:28 +01:00
JC Brand
bda704901f
emoji-views: lazily render picker only once user clicks to open
2020-01-22 15:00:16 +01:00
JC Brand
f3472e1b9f
emoji: Add initialize
API method and call when chat view gets created
2020-01-22 13:20:59 +01:00
JC Brand
2f76397590
Bump timeout for rendering an image to 20secs
2020-01-21 15:39:35 +01:00
JC Brand
901f70272e
message-view: Re-use image element and fix autoscroll after image loads
2020-01-21 15:32:34 +01:00
JC Brand
685c9585f4
Fix linting error
2020-01-21 14:06:47 +01:00
JC Brand
234b273ca6
message-view: Add support for rendering Imgur URLs
2020-01-21 13:53:59 +01:00
JC Brand
b0a9782d31
emoji: Lazy load the emoji JSON
...
Only load it once the first chat has been opened.
2020-01-21 12:45:34 +01:00
JC Brand
d5472a8d23
muc-views: Use native methods instead of lodash
2020-01-21 11:46:39 +01:00
JC Brand
17ef50f662
muc-views: admins can also change the MUC subject
2020-01-17 14:50:25 +01:00
JC Brand
161cbec0d8
For forbidden
errors, show error message from server
2020-01-17 14:44:05 +01:00
JC Brand
b2a4ff7a85
muc-views: don't accept non-allowed commands
2020-01-17 13:56:58 +01:00
JC Brand
79cc160772
chatview: Make sure char counter is updated and textarea is focused
2020-01-17 12:53:45 +01:00
JC Brand
4bad10cd21
muc-views: Fix mess in previous commit
2020-01-17 12:17:06 +01:00
JC Brand
16d2fa3f48
muc-views: Don't show subject change message in new MUC
2020-01-17 05:36:07 +01:00
JC Brand
3d3d97e75b
Restrict /topic command to allowed users
2020-01-16 15:28:02 +01:00
JC Brand
aa86a8be32
muc: Store room configuration (e.g. disco#info fields
) on the MUC
...
This will make it easier to add config-based functionality, such as
allowing/showing the `/topic` slash command only to those users who are
allowed to set the subject.
2020-01-16 15:28:02 +01:00
JC Brand
929a00e1cd
Fixes #1836
2020-01-16 13:48:46 +01:00
JC Brand
d17ae811d7
More CSS and test fixes
2020-01-15 15:48:31 +01:00
JC Brand
f367157d75
Try to work around a Chromium flexbox bug.
...
The .chat-content are doesn't resize when the textarea gets resized to
its original size once a message gets sent.
2020-01-15 14:38:48 +01:00
JC Brand
17e9f5607d
Set meta and noscript tags
2020-01-15 11:40:40 +01:00
JC Brand
66d1a65432
Update chat head markup and CSS
...
- Use flexbox where possible
- Simplify header by using `justify-content` instead of setting column widths
- Show description below the row containing the title and buttons
2020-01-14 13:38:27 +01:00
JC Brand
9ce315dece
Bugfix. Handle stanza that clears the MUC subject
2020-01-14 10:07:23 +01:00
Christoph Scholz
40726e06e9
A user can now add himself as a contact
2020-01-13 10:30:00 +01:00
Christoph Scholz
e2d744ddc4
config option for roomid validation
2020-01-13 09:01:21 +01:00
JC Brand
496e5ba46d
Fix linting error
2020-01-13 09:00:08 +01:00
JC Brand
2a3ca93256
core: don't use Chrome-only check for web auth support
2020-01-12 01:35:44 +01:00
JC Brand
22ff93c3a7
core: Import individual lodash methods
...
and use some native ones instead
2020-01-12 01:08:37 +01:00
Christoph Scholz
d0ee41d4fb
focus now on jid field after controlbox is loaded
2020-01-11 23:26:36 +01:00
Christoph Scholz
36e56052bc
don't log error if user has no bookmarks
2020-01-10 21:12:59 +01:00
JC Brand
916e300a79
Updates #1313 and #1793 : Send button improvements
2020-01-10 15:40:46 +01:00
JC Brand
9c5fc2e4d3
Use package.json files to specify more precisely what gets packed
2020-01-10 13:29:42 +01:00
JC Brand
e866248227
Don't include vim temp-files in release tarball
...
and bump post-release version number
2020-01-10 13:04:05 +01:00
Christoph Scholz
7d94c712c8
notification is now clickable
2020-01-10 11:55:17 +01:00
JC Brand
cb68308d5b
Fix JSDOC comment
2020-01-10 09:04:54 +01:00
JC Brand
cd60614f88
Release 6.0.0
2020-01-09 17:15:43 +01:00
JC Brand
4f4b10d2a3
muc: initialize occupants early to avoid timing issues...
...
in converse-omemo which relies on `chatbox.occupants` existing in the
`add` handler.
2020-01-09 17:07:31 +01:00
JC Brand
ff799a41f6
emoji-views: handle navigator not being instantiated yet
2020-01-09 17:07:31 +01:00
JC Brand
9cbc15d4a6
Updates #1806
2020-01-09 15:01:37 +01:00
JC Brand
4018dd959e
Fixes #1764 : Incorrect URI encoding in references
2020-01-09 14:59:45 +01:00
JC Brand
2dae07fa87
Fixes #1791 : Adhere to the auto_focus setting
2020-01-09 14:28:43 +01:00
JC Brand
224f41ca8a
Remove autofocus
, it's bad for accessibility and mobile usability
...
See here: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-autofocus
2020-01-09 14:15:16 +01:00
JC Brand
158f3f0025
utils/html: expose more methods
2020-01-09 14:11:09 +01:00
JC Brand
ef1f16c186
Fixes #1767 : Remove JID so that credentials_url is called...
...
when the user logs out and then in again
2020-01-09 11:05:37 +01:00
JC Brand
72e6fb5ef0
Refactor rendering of OOB urls and images
...
- limit the number of instantiations of URI
- Handle try/catch of URI invoking in one place (`getURI`)
- Reduce exposed interface of utils/html.js by making some methods internal functions
2020-01-09 11:34:39 +02:00
Christoph Scholz
13652f6a6f
Errors caused by malformed URLs are now caught
2020-01-09 10:59:19 +02:00
JC Brand
6ad0426a7d
Fix linting errors
2020-01-08 12:27:17 +01:00
JC Brand
17654aaf40
emoji-views: incorporate tab-based navigation
2020-01-08 11:38:31 +01:00
JC Brand
e87db91e2d
dom-navigator: properly call static method.
...
emoji-views: Add scroll offset
2020-01-07 18:46:05 +01:00
JC Brand
b339f99cbf
minimize: Call initMinimizedChats
earlier
...
We don't need to wait until we have the user JID given that this is just
a view being instantiated.
2020-01-07 18:19:52 +01:00
JC Brand
0524352446
Fix linting errors and update changelog
2020-01-07 15:59:29 +01:00
JC Brand
995f2a9997
Add arrow navigation to the emoji picker
2020-01-07 15:47:05 +01:00
JC Brand
2b213d0561
log: properly log to the set level
2020-01-06 10:40:18 +01:00
Yaskhan
1653c1ae92
Update converse-mam.js
...
I think why do not come archives from group chats, and it turns out that you need to add "groupchat" in options. I spent half an hour searching in the documentation, and half an hour searching in the convers tests. And finally found in tests.
2019-12-26 15:56:04 +02:00
JC Brand
d8e561ef7e
Fix linting errors
2019-12-20 16:02:53 +01:00
JC Brand
0d8b3e1839
Fixes #1806 : Two file upload buttons appear in MUC
2019-12-19 17:29:33 +01:00
JC Brand
9b4276721c
Remove unnecessary await statement
2019-12-19 13:12:12 +01:00
JC Brand
da319604b6
Fixes #1735 : Chatboxes stay empty after logging out and in again
...
The problem was that the `emojisInitialized` promise was re-created upon
logout and then no longer resolved upon subsequent login.
The `_converse.api.promises.add` method now takes another parameter
`replace` which determine whether it should be replaced upon logout or
not.
The `emojisInitialized` promise will now not get replaced.
2019-12-18 16:09:44 +01:00
JC Brand
8b6c902c4c
Set VCards via events, thereby reducing coupling
...
- Rename `chatRoomOpened` event to `chatRoomViewInitialized`
- Rename `chatBoxInitialized` to `chatBoxViewInitialized` and trigger only for `ChatBoxView` instances.
- New event `headlinesBoxViewInitialized`
- Trigger the `chatBoxInitialized` event when a new `_converse.ChatBox` is opened.
2019-12-18 15:20:51 +01:00
JC Brand
c3102561f4
updates #1795 : Only download metadata for video files
2019-12-18 15:20:51 +01:00
JC Brand
c6c65749bb
rosterview: use push
instead of the non-existent append
2019-12-18 12:07:25 +01:00
JC Brand
a246aef823
muc-views: clear empty history indicator when inserting a date
2019-12-18 12:07:25 +01:00
JC Brand
b0e66232d3
Fixes #1253 : Show contacts with unread messages at the top of the roster
2019-12-18 11:42:26 +01:00
JC Brand
82b19173f1
rosterview: Import individual lodash methods
2019-12-17 14:38:12 +01:00
JC Brand
565283b8a3
rosterview: Let the default chat state filter be online
...
Also replaced some lodash methods with native ones.
2019-12-17 14:27:56 +01:00
JC Brand
03b7ae0a30
Improvements to how things are stored.
...
- Use the bare JID as indexedDB dataStore
- Collapse localStorage and indexedDB stores into one `persistent` store.
- When testing, only clear test data
2019-12-17 13:59:43 +01:00
JC Brand
4aa6b728cf
muc: wait for restoreSession
2019-12-11 16:20:08 +01:00
JC Brand
0f63c84d5b
core: properly clear cache in clearSession
...
Bump to latest backbone.browserStorage which adds the `clear` method
2019-12-11 15:44:56 +01:00
JC Brand
c379807d4c
muc: Move code into restoreSession
method
2019-12-11 10:06:26 +01:00
JC Brand
f3a1351a42
muc: loosen isJoined
criteria
...
Handle any `error` IQ result or timeout from a MUC ping as indication that we're no longer joined.
2019-12-11 10:06:03 +01:00
JC Brand
720087bef2
controlbox: remove unnecessary overrides
2019-12-11 08:38:28 +01:00
JC Brand
a4567ee075
muc: Store connection_status
in session storage
...
Otherwise we might run into a situation where a very old,
cached MUC that's being restored has `connection_status` set to ENTERED
(and the user happens to be in the MUC via another client)
and then restores cached messages without taking
`clear_messages_on_reconnection` into account.
2019-12-11 08:10:27 +01:00
JC Brand
09b085be6e
muc: no need to override tearDown
...
we already listen for `beforeTearDown` and do what's necessary there.
2019-12-11 08:10:25 +01:00
JC Brand
8125eaed57
chatboxviews: Remove ineffectual override
...
`initStatus` is no longer on the `_converse` object, so the override
wasn't being applied and chat boxes get closed when the
`clearSession` event fires.
2019-12-10 15:21:28 +01:00
JC Brand
306748feb0
muc-views: no need to set nickname before calling join
...
It was in any case setting the wrong key, should've been `nick`
2019-12-09 17:17:40 +01:00
JC Brand
3d3738f3be
muc: refactor MUC joining
...
We now distinguish more clearly between joining and re-joining a MUC.
The `enterRoom` method has been refactored away.
Instead, `join` or `rejoin` should be used, depending on the circumstances.
Don't fetch cached occupants in the `initialize` function, instead, only fetch
them if we're restoring a MUC that we're still connected to.
If we're not restoring a still-connected MUC, then we clear the
occupants cache, and the messages cache if `clear_messages_on_reconnection` is `true`.
updates #1807
updates #1808
2019-12-09 17:17:33 +01:00
JC Brand
7bf39a092f
muc: move message handler into own method
2019-12-06 13:09:09 +01:00
Dele Olajide
890db3427f
Handle message notifications about affiliation change for users not in a room
...
See https://git.happy-dev.fr/startinblox/components/sib-chat/issues/96
2019-12-06 12:55:07 +01:00
JC Brand
c646879cca
Ping the server when the tab becomes visible
2019-12-06 10:57:52 +01:00
JC Brand
5b507ec74e
muc: check that we're still connected if the tab becomes visible
...
Otherwise Converse might only realise we're no longer in the room when
the user tries to interact with it.
2019-12-05 22:29:37 +01:00
JC Brand
7866247f5d
dragresize: Unregister global event handlers
2019-12-05 21:02:06 +01:00
raphaelSeguin
97b8ecbbdf
Display status avatars in the occupants list
2019-12-05 14:13:52 +01:00
JC Brand
b1c9af3ed0
Various improvements to resizing of occupants view.
...
- Remove need for the `converse-mouse-events` plugin.
- Register `mousemove` and `mouseup` handlers only when necessary and only inside the MUC DOM element.
- Restore converse-dragresize to roughly it's original state before work started on this.
- Move `applyDragResistance` to utils.
updates #1640
2019-12-05 09:32:48 +01:00
JC Brand
0c4da63e07
Merge branch 'pullRequest_SkalierungTeilnehmerListe' of github.com:worlword/converse.js
2019-12-04 14:55:47 +01:00
JC Brand
115abdda27
muc-views: pass all model attributes to template
...
Makes it possible to show a validation message in a downstream
application.
2019-12-03 15:02:37 +01:00
JC Brand
dffe3d1a26
smacks: Set enable_smacks
to true
as default
2019-12-03 13:54:28 +01:00
JC Brand
c3447dd205
New config option: `persistent_store
`
...
Allows for using IndexedDB as the persistent store, instead of localStorage
2019-12-03 13:51:57 +01:00
JC Brand
5232019ed7
roster: Replace lodash methods with native ones
2019-12-03 12:37:26 +01:00
JC Brand
7fc3151e56
Fixes #1783
2019-12-03 11:31:28 +01:00
JC Brand
9bff567b3c
Fixes #1796
2019-12-03 10:57:01 +01:00
JC Brand
f1e1e538b6
muc-views: Wait for messages to be fetched
...
Also, insert occupants sidebar before inserting the chat into the DOM
2019-12-02 14:00:21 +01:00
JC Brand
099603ed8b
chatview: Reduce debounce time for markScrolled from 100ms to 50ms
2019-12-02 13:59:58 +01:00
JC Brand
fc42f2903c
muc-views: enterRoom should be called on the model
2019-12-02 13:45:35 +01:00
JC Brand
d2cf29bce4
muc: One more place to fetch messages
...
When restoring an already entered room from cache.
Otherwise we end up with an empty history.
2019-11-29 17:04:54 +01:00
JC Brand
1c116b0385
mam: distinguish between messages fetched before and after MUC join
2019-11-29 16:17:48 +01:00
JC Brand
a9128808de
muc: Re-render the bottom panel once we enter the MUC
...
Otherwise we end up with no textarea when rendering a MUC that starts
with connection_status of entered but which then needs to reconnnect.
2019-11-29 16:17:28 +01:00
JC Brand
53ced8c763
muc: Don't restore messages from cache...
...
if we're just going to clear them again
This avoids flashing of messages followed by a spinner.
2019-11-29 09:58:38 +01:00
JC Brand
d7d810ba89
Improvements to rendering MUC MAM logs before joining
...
- Add config variable `muc_show_logs_before_join`
- Restore nickname form for the original use-case (when not showing MAM logs before joining).
- Render nickname form in the `.muc-bottom-panel` when showing MAM logs (instead of in a modal)
- Show a message when there aren't any archived messages to show
- Fix converse-mam so that chat logs are properly fetched before entering a MUC
closes #1266
2019-11-29 09:23:15 +01:00
Emmanuel Gil Peyrot
a83911d67f
WIP: Move the nickname selection form to a modal
2019-11-28 15:45:48 +01:00
JC Brand
c836eb401f
disco: Import individual lodash methods
2019-11-26 22:04:50 +01:00
JC Brand
762717dd38
Bugfix. streamFeaturesAdded
triggered too soon.
...
`streamFeaturesAdded` should only be triggered once we've received them
from the server.
This appears to be a timing bug, likely introduced by the IndexedDB
refactoring.
2019-11-26 22:04:50 +01:00
JC Brand
e23c7ce543
More retraction updates
...
- Retracted moderated message are not editable
- Use "removed" for user-facing text
2019-11-26 22:04:38 +01:00
JC Brand
13ffe5a667
Various smaller retraction related fixes and improvements
2019-11-26 12:16:48 +01:00
JC Brand
53df5d6b49
Fix whitelisting and dependencies on the headline plugins
2019-11-22 14:38:09 +01:00
JC Brand
3ffb56baa2
Replace debug
configuration setting with loglevel
2019-11-22 14:23:19 +01:00
JC Brand
e4010185dc
Add new config option allow_message_retractions
2019-11-22 13:50:36 +01:00
JC Brand
2eff75b387
Don't show retraction button on already retracted messages
2019-11-22 13:50:36 +01:00
JC Brand
2e3cc12d9a
Bugfix. Only remove modals when disconnected
...
not while tearing down, otherwise the modals get removed while
reconnecting and we have stale references to modals no longer in the
DOM.
2019-11-22 13:50:36 +01:00
JC Brand
025cdbf18f
Check for support before allowing message moderation
2019-11-22 13:50:36 +01:00
JC Brand
ad77ba60e6
Only show larger text for up to 3 emojis
2019-11-22 13:50:36 +01:00
JC Brand
1b9ba58aca
Rename variable to be more accurate
2019-11-22 13:50:36 +01:00
JC Brand
99f539b3cb
MUC: Don't show duplicate subsequent info
messages
2019-11-22 13:50:36 +01:00
JC Brand
3d4bad4b19
Don't mark info messages as followups
2019-11-22 13:50:36 +01:00
JC Brand
657dd1e6d1
Add /close command for chats
2019-11-22 13:50:36 +01:00
JC Brand
16c83877d2
Bugfix. Re-instantiate confirmation promise
2019-11-22 13:50:36 +01:00
JC Brand
d895c7fc16
Bugfix. Leave space between classes
2019-11-22 13:50:36 +01:00
JC Brand
149fcf5d32
Properly wait when clearing messages
2019-11-22 13:50:36 +01:00
JC Brand
b4dafcc45b
Add support for XEP-0424 and XEP-0425
...
- Add support for switching ephemerality after message creation
- Move more methods from ChatBox and ChatRoom to utils/stanza.js
- Rename 'ephemeral' to 'is_ephemeral' since it's a boolean
2019-11-22 13:50:36 +01:00
JC Brand
4b3d427cff
muc: only create view once model has finished initialization
2019-11-22 13:50:36 +01:00
JC Brand
9965a93291
muc: Simplify getVCardForChatroomOccupant
method
2019-11-22 13:50:36 +01:00
JC Brand
e915321e33
Group MUC utility methods in muc_utils object
...
as opposed to having them in the `u` object
2019-11-22 13:50:36 +01:00
JC Brand
8523cae8d0
Move message parsing code out of ChatBox into new stanza-utils plugin
2019-11-22 13:50:36 +01:00
JC Brand
caadb24310
Refactor logging out into its own module
...
So that we don't need to `_converse` obj in order to log messages
2019-11-22 13:50:36 +01:00
JC Brand
e7661b725e
Updates #1760 : Private messages no longer received after websocket reconnect
2019-11-18 22:01:02 +01:00
JC Brand
88ea9f8b61
Match a message of only emojis (instead of just a single emoji)
2019-11-18 12:51:18 +01:00
ndoell
b94e5653a9
Add resize functionality to occupants-list in MUC.
...
This adds the ability to resize the MUC-Member-List in all MUCs. The
MUC-Member-List can be scaled between 20% width of the MUC and 75% of
the MUC.
2019-11-13 19:39:35 +01:00
Dele Olajide
1f673b7aae
StartinBlox PR to fix issues
...
1. enable avatars in autocomplete
2. change search/filter type for automcomplete
2019-11-12 16:22:37 +01:00
JC Brand
5ede164e8d
Disable custom emojis for now
...
Fixes #1769
2019-11-09 11:53:53 +01:00
JC Brand
530e29810d
Bugfix. Clicking emoji category twice closes picker and inserts null
2019-11-04 18:25:25 +01:00
JC Brand
879e165ae5
Refactoring
...
- Move headless one-on-one chat functionality into converse-chat
- Split converse-headline into converse-headlines and converse-headlines-views
- Add api in `_converse.api.chatboxes` for creating chatboxes
- Add `_converse.api.controlbox.get` method
2019-11-04 15:05:50 +01:00
JC Brand
93d56898b7
Fixes #1772 . Wait for roster to be fetched
2019-11-03 19:34:55 +01:00
JC Brand
23797dee21
_converse.api.alert.show
is now _converse.api.show
...
Instead of taking an integer for the `type`, "info", "warn" or "error" should be passed in.
2019-10-31 14:42:44 +01:00
JC Brand
17dfa3d7ba
Avoid race-condition that destroys vcards
...
VCards were being created before `fetch` was completed, so once fetch
was done those VCards were unset from their collection.
Add a new event and promise `VCardsInitialized` that triggers after
successful fetching and wait for it before creating VCards.
2019-10-30 13:02:23 +01:00
JC Brand
1fa203c990
Support for IndexedDB. updates #1105
...
Depend on latest backbone.browserStorage which has support for IndexedDB
via localforage.
Storage operations are now asynchronous and transactional.
Bugs fixed (mostly by waiting for operations to complete):
* Rooms are now fetched asynchronously, so wait before triggering `show`
or when closing.
* Make sure chat create/update transactions complete before firing events
* Make sure chats and messages have been fetched before creating new ones.
* When doing a `fetch` with `wait: false` on a collection and then
creating a model in that collection, then once the read
operation finishes (after creating the model), the collection is emptied again.
* Patch and wait when saving.
Otherwise we have previously set attributes overriding later ones.
* Make sure api.roomviews.close returns a promise
Test fixes:
* Chats are now asynchronously returned, so we need to use `await`
* Wait for the storage transaction to complete when creating and updating messages
* Wait for all chatboxes to close
Otherwise we get sessionStorage inconsistencies due to the async nature of localforage.
* Wait for room views to close in spec/chatroom.js
In the process, remove the `closeAllChatBoxes` override in
converse-controlbox by letting the `close` method decide whether it
should be closed or not.
2019-10-30 13:02:23 +01:00
JC Brand
b71500104b
Move emoji-picker out so that its width can expand
2019-10-29 17:19:33 +01:00
JC Brand
9934fa7191
New event minimizedChatViewInitialized
2019-10-22 18:33:56 +02:00
JC Brand
b6d5077d04
Refactor _converse.XMPPStatus
out into headless/converse-status.js
...
Also move some other methods out of `converse-core` into the plugins
that use them.
2019-10-18 11:13:09 +02:00
JC Brand
aae7e111eb
Fix roster caching and versioning issue.
...
- Always try to first get local cache before requesting the roster.
- Rename `roster_fetched` with `roster_cached`
2019-10-17 16:19:14 +02:00
JC Brand
015f1c6fc8
Make status clickable instead of adding pencil icon
2019-10-17 13:33:43 +02:00
JC Brand
ea54644a45
Fixes #1089 . When filtering by online
, show all non-offline users
2019-10-17 13:30:23 +02:00
JC Brand
f7a57f272e
Remove show_only_online_users
config setting.
...
Doesn't appear to be very useful. IIRC it was added as a workaround for
slow roster issues.
2019-10-17 13:17:37 +02:00
JC Brand
e6e23a1a82
Add initial support for custom emojis
2019-10-17 12:12:08 +02:00
JC Brand
2ed8b4660e
Bugfix. Duplicate rooms-list header
2019-10-16 12:11:59 +02:00
JC Brand
99805d2510
Make sure the roster is fetched again if stream resumption fails
2019-10-15 14:30:04 +02:00
JC Brand
9d619820f9
core: Don't allow the connection to be passed in.
...
This was used for tests but is no longer necessary.
2019-10-15 14:30:04 +02:00
JC Brand
be03b30d75
bookmarks: better handling of timeouts
...
- Inform the user when fetching of bookmarks times out.
- Only set the cached flag if the user doesn't have bookmarks.
2019-10-15 13:09:34 +02:00
JC Brand
487f1b5281
core: use _.get since connection might not be set up yet
2019-10-15 13:09:34 +02:00
JC Brand
f21abc60f5
roster: Only fetch from browser storage if already cached
2019-10-15 13:09:34 +02:00
JC Brand
358187f8b0
bosh: Bugfix, pass in JID
2019-10-14 13:22:34 +02:00
JC Brand
0fa95ccd50
Bugfix. Pass correct arguments to synchronous event handlers
2019-10-13 19:58:00 +02:00
JC Brand
50b77e8608
Fixes #1733
2019-10-13 19:48:39 +02:00
JC Brand
c8b7e8ab99
bookmarks: refactor to use VDOMView instead of OrderedListView
2019-10-13 17:53:57 +02:00
JC Brand
91397125ba
roomslist: Refactor to use VDOMView instead of OrderedListView
2019-10-13 16:59:31 +02:00
JC Brand
82bce1e946
Move creation of browserStorage into a separate method
...
This is in anticipation of the localforage/IndexDB merge
2019-10-11 20:40:31 +02:00
JC Brand
9d77a4ef97
Fixes #129 Add support for XEP-0156.
...
Only XML is supported for now.
2019-10-11 17:46:13 +02:00
JC Brand
54e9c51a1a
Don't rely on getUniqueId
of Strophe.Connection
...
since we can't assume it's always available.
2019-10-11 17:46:13 +02:00
JC Brand
6253dd52a6
core: let logout return a promise and wait for it in tests
2019-10-11 17:46:13 +02:00
JC Brand
a0bd6dbab6
dragresize: Use _.get for converse.connection
2019-10-11 17:46:13 +02:00
JC Brand
5383d65d5a
roster: unregisterPresenceHandler
must be wrapped in arrow function
2019-10-11 17:46:13 +02:00
JC Brand
b63b080419
chatboxes: wait until messages are fixed before returning new chatbox
...
Fixes #1691
2019-10-10 14:44:13 +02:00
JC Brand
8e4e918575
Replace lodash methods with built-in ones and add jsdoc strings
2019-10-10 14:43:13 +02:00
Christoph Scholz
2d44144b69
prevent message correction for files
2019-10-10 14:19:34 +02:00
JC Brand
8780f7a128
Fix linting errors (no-unused-vars)
2019-10-09 16:27:58 +02:00
JC Brand
8b1c17c12b
chatview: Replace lodash methods with built-in ones
2019-10-08 21:29:43 +02:00
JC Brand
f9b09052eb
core: Make sure window.converse
is defined before assigning to it.
2019-10-08 16:47:30 +02:00
JC Brand
75c11a2006
emoji-views: Specify dependency on muc-views
...
Otherwise plugins might be loaded out of order and then event handlers
in this module don't get registered.
Also, bump to dev version number
2019-10-08 16:30:23 +02:00
JC Brand
266fe131a9
Release 5.0.4
2019-10-08 14:22:56 +02:00
JC Brand
b70fde159d
Fixes #1738 . Allow webpack's publicPath
to be specified at runtime
2019-10-06 21:52:37 +02:00
JC Brand
5c532e3b92
Build po files and add Vietnemese as available language
2019-10-06 21:52:09 +02:00
JC Brand
fdb24122c0
chatboxes: clear messages when in untrusted mode
2019-10-04 17:47:57 +02:00
Christoph Scholz
1c7c25091f
new config option: allow_message_corrections
2019-10-04 15:42:38 +02:00
JC Brand
43935a9e56
controlbox: replace lodash methods with native ones
2019-10-04 14:53:20 +02:00
JC Brand
463caf36a1
bookmarks: silently remove bookmarks when clearing the session
2019-09-26 16:43:26 +02:00
JC Brand
0895abf3e4
chatboxes: Replace lodash methods and only import what's necessary
2019-09-26 15:21:47 +02:00
JC Brand
44e5b4c947
bosh: only advertise support if the module is enabled
...
updates #1725
2019-09-24 15:42:13 +02:00
Christoph Scholz
bce8dc9113
Fixes #1714
...
don't notify if only message delivery receipt
2019-09-24 13:27:49 +02:00
Christoph Scholz
cd5dacbe29
Process stanzas from mam one-by-one
2019-09-21 13:26:36 +02:00
JC Brand
51b818f916
smacks: Also check for BOSH to determine support
2019-09-20 12:06:43 +02:00
huang.xinghui
9291dfc918
Update package.json
...
fix: fixed main file path
2019-09-17 11:33:57 +02:00
JC Brand
8574f66954
Don't hardcode roster filter to localStorage
2019-09-17 10:49:02 +02:00
JC Brand
e377c9bd6f
Fixes #1712
2019-09-16 14:04:28 +02:00
laszlovl
ab9b2d64ab
Fix incorrectly detecting every message with a duplicate ID as correction
2019-09-16 13:07:14 +02:00
JC Brand
9d52b16b58
Set new dev version
2019-09-13 16:05:18 +02:00
JC Brand
39896b508b
Release 5.0.3
2019-09-13 15:19:00 +02:00
JC Brand
bdf4f3f536
Bump npm and lodash
2019-09-13 13:38:20 +02:00
JC Brand
68e34351ed
Reject unencapsulated forwarded messages
...
since we don't support XEP-0297 on its own
2019-09-13 13:05:21 +02:00
JC Brand
37d052ad9e
Verify that Converse is not susceptible to CVE-2015-8688
...
https://gultsch.de/gajim_roster_push_and_message_interception.html
2019-09-12 19:46:09 +02:00
JC Brand
c6f3da5887
Clean up test
2019-09-12 19:15:13 +02:00
JC Brand
d58380af83
Provide more info in error message
2019-09-12 12:51:20 +02:00
JC Brand
5afe8629cd
Remove mistakenly pasted jsdoc snippet
2019-09-12 12:48:09 +02:00
JC Brand
a6b7d0d972
Emit chatBoxFocused
and chatBoxBlurred
events for emoji picker input
2019-09-12 11:05:27 +02:00
JC Brand
5bf0955193
Release 5.0.2
2019-09-11 17:44:38 +02:00
JC Brand
35e97c2353
Ignore MAM chat
messages not sent from yourself
2019-09-11 14:18:21 +02:00
JC Brand
0af9bc8ffc
Fixes #1704
...
Ignore carbon groupchat messages
2019-09-11 14:18:21 +02:00
Licaon_Kter
a69ebcbdf6
Capitalize "groupchat" ( #1707 )
...
* Capitalize "groupchat"
* Also locale
* Also muc spec
2019-09-11 14:17:23 +02:00
JC Brand
26c1dbb0eb
Updates #1705 . Add getRoomsPanel
method to avoid dangling pointer
2019-09-11 11:28:28 +02:00
GRUNBLATT Remy
d0b6e8fd16
Update Oauth login to current API format
2019-09-11 11:09:12 +02:00
JC Brand
e305cc35b0
Remove --larger
class on a edited message that's no longer just emojis
2019-09-10 16:54:32 +02:00
JC Brand
54c90e146e
Replace lodash methods with built-ins
2019-09-10 15:47:30 +02:00
JC Brand
1a7b7f1bea
modtools: fix typo
2019-09-09 12:10:44 +02:00
JC Brand
3fee5540a0
modtools: Also allow querying and setting no affliation
2019-09-09 11:25:46 +02:00
JC Brand
2ec70adc5d
modtools: Add help text to explain roles and affiliations
2019-09-09 11:02:14 +02:00
JC Brand
90ef4b0c9d
Don't let non-mods open the modtools modal
...
Bugfix: fall back to nick if the JID is not available.
2019-09-08 00:15:05 +02:00
JC Brand
768ed4a577
Replace lodash methods with built-ins, convert docstrings to JSDoc
2019-09-07 23:14:33 +02:00
JC Brand
46ccc1a87f
Fixes #1692
2019-09-06 16:14:30 +02:00
JC Brand
cc91f3751e
Add listenTo
instead of on
to avoid memory leaks
2019-09-06 16:04:06 +02:00
JC Brand
d9c1bbf95b
updates #1691 : Use listenTo
...
so that we have automatic event deregistration when the model gets removed.
2019-09-06 13:10:37 +02:00
JC Brand
dfafbefb71
emoji-view: insert partially matched emoji on enter
...
if it's the only search hit.
2019-09-05 16:22:57 +02:00
JC Brand
f52ade1193
emoji-views: don't iterate over all emojis if...
...
new search term includes the previous one
2019-09-05 16:17:59 +02:00
JC Brand
bf599f39ff
emoji-views: reinitialize intersection observer upon rerender
2019-09-05 15:29:30 +02:00
JC Brand
01468fc087
converse-emoji: Sort search results
...
Also, don't show the categories while searching.
2019-09-05 14:49:06 +02:00
JC Brand
60f04bc915
converse-emoji: Avoid dangling pointers to removed category DOM elements
2019-09-05 14:07:25 +02:00
JC Brand
4015eb2fd1
Name anonymous function to fix failing test
2019-09-05 13:12:34 +02:00
JC Brand
b5c56c8323
Add getFullname
to XMPPStatus model and use that
...
instead of returning the fullname as fallback in `getNickname`
2019-09-05 12:49:10 +02:00
JC Brand
5f5de90f0c
MUC: Don't set a default nick
...
We first want to check whether the user has registered a nick with the
MUC, and if so, that will be set as the nick.
2019-09-05 10:49:06 +02:00
JC Brand
c8f0fd2a7f
Refactor cleaner separation between converse-vcard and other plugins
2019-09-05 10:49:06 +02:00
JC Brand
3f0d88e88d
Fix ids for the modtools modal
2019-09-04 15:18:51 +02:00
JC Brand
cf7d2fb648
Add webpack.nodeps.js
...
Use it to generate dist/converse-no-dependencies.js which we use to
generate the converse.pot file.
2019-08-23 21:36:27 +02:00
JC Brand
93de11d167
Dynamically load the dayjs translation.
...
Also, remove the Promise polyfill. We don't support browsers which don't support promises.
2019-08-23 14:03:52 +02:00
JC Brand
9f054dd767
Update webpack config
...
- hot reloading
- split config into dev and prod
2019-08-23 13:29:26 +02:00
JC Brand
76f2b66445
Add a po loader for webpack.
...
- Removes the need for generating and keeping json files
2019-08-23 11:42:37 +02:00
JC Brand
8aaf50d58c
Use webpack's dynamic imports feature for fetching emoji JSON
2019-08-23 09:18:10 +02:00
JC Brand
d619012b6b
Emojis: Fix failing tests
2019-08-23 07:05:00 +02:00
JC Brand
bb0670c6b2
converse-emoji-views: tweak threshold values
2019-08-22 16:26:10 +02:00
JC Brand
3b40f6964f
Update Emoji JSON
...
* Order by category
* Set odering pre category (instead of just showing them alphabetically)
2019-08-22 16:21:27 +02:00
JC Brand
c01d110501
Avoid interference between username and emoji autocomplete
2019-08-22 14:30:02 +02:00
JC Brand
a59510bbf0
Highlight relevant category when scrolling
2019-08-22 13:56:47 +02:00
JC Brand
2c48096664
Add new spec with emoji tests
2019-08-22 13:56:47 +02:00
JC Brand
e4dc9fa820
Open emojis popup when TAB is pressed on a word starting with :
2019-08-22 13:56:47 +02:00
JC Brand
9099ef89fa
Close emoji popup after insertion
2019-08-22 13:56:47 +02:00
JC Brand
73c8002b76
Add search bar for emojis
2019-08-22 13:56:47 +02:00
JC Brand
13d419102a
converse-emoji-views: Show categories in chosen skintone
2019-08-22 13:56:47 +02:00
JC Brand
1cf9a936a4
Move Views associated to emojis into a new plugin
2019-08-22 13:56:47 +02:00
JC Brand
d7ce231c51
Various emoji improvements:
...
* Add emoji tooltip
* Make categories configurable and add smileys category
* Rearrange emoji categories and style
& Show all emojis together
2019-08-22 13:56:47 +02:00
JC Brand
4cb9fd88a8
Refactor emojis so that JSON is fetch asynchronously
2019-08-22 13:56:47 +02:00
Dele Olajide
4e440b0325
Update converse-chatboxes.js
2019-08-19 09:16:19 +02:00
Dele Olajide
f6c5f167f8
Fix Issue #1679
...
This fix forces Converse.js to respect auto_join_rooms and allow auto join room to occur with server-side generated random room names as required for XEP 0142 - workgroup queues
2019-08-19 09:16:19 +02:00
JC Brand
c9c689aec7
Docstring fixes
2019-08-16 15:44:58 +02:00
JC Brand
4291a45631
Postrelease
2019-08-14 13:15:16 +02:00
JC Brand
8f571ff148
Release 5.0.1
2019-08-14 12:56:44 +02:00
JC Brand
bcc73fe727
converse-muc: occupantAdded
promise has been removed
...
Also:
* converted two docstrings into JSDoc format
* Don't use `_.isNull`
2019-08-14 12:14:02 +02:00
JC Brand
9c024757b6
Bugfix: TypeError: o.getAttribute is not a function converse-chatview.js
...
can cause messages to not appear.
* Check against null not Element.
* Avoid iterating over non-Element nodes
2019-08-14 12:10:32 +02:00
JC Brand
3faaf6a62b
converse-muc: Fetch messages in the initialize method
...
Lately we've been fetching messages only after entering the MUC, so that
we already have occupants to attach to them (due to `fetchMembers` being
called before) and thereby avoid rerenders.
I've now moved message fetching into the `initialize` method and added
missing event handlers for attaching/removing the occupant from a
message as it comes online or goes offline.
We still avoid (some) rerenders because we fetch and wait for cached
occupants before fetching cached messages and we wait for `fetchMembers`
before triggering `enteredNewRoom` which causes MAM messages to be
fetched.
2019-08-14 11:08:05 +02:00
JC Brand
fa59b22f93
converse-message-view: Move methods from view to model
2019-08-13 15:34:59 +02:00
JC Brand
21a9ea7365
converse-message-view: Add hooks before/after message text transformations
2019-08-13 15:31:05 +02:00
JC Brand
502d2aa064
converse-message-view: Refactor to not use _.partial or _.flow
2019-08-13 11:46:51 +02:00
JC Brand
89ac4a6969
Show error message with option to retry when MAM query times out
2019-08-13 11:08:03 +02:00
JC Brand
cb10c28082
modtools: Test that error renders when not allowed to fetch affiliation list
...
Also fix scrolling bug
2019-08-12 12:45:12 +02:00
JC Brand
c490ba212d
converse-muc: Avoid refetching messages from cache
...
We want to fetch messages from cache only once. For one-on-one chats
this is the case because messages are fetched only in the `initialize`
method.
This used to be the case for MUCs as well, until we added the option
`clear_messages_on_reconnection`.
Now we only fetch messages after the user has entered the MUC.
2019-08-10 18:47:49 +02:00
JC Brand
e45bd5fc36
converse-roomslist: Handle bookmark not existing
2019-08-10 14:12:20 +02:00
JC Brand
02e50ca3a3
converse-mam: Don't fetch MUC MAM messages on chatReconnected
event
...
By this time the cached messages are not yet fetched, causing the entire
MAM archive to be queried.
2019-08-10 14:12:20 +02:00
JC Brand
ea123e9713
Handle IQ timeouts
...
* converse-muc: Handle timeout while fetching affiliation list
* converse-omemo: Handle IQ timeout
2019-08-10 14:12:02 +02:00
JC Brand
a407aff33c
converse-ping: Refactor and update to reconnect upon ping timeout
2019-08-10 12:26:07 +02:00
JC Brand
aa9aad918f
Handle case where bookmark doesn't exist for some reason
2019-08-10 12:06:01 +02:00
JC Brand
aee6a192d1
Add a new command /modtools
...
in which you can set user affiliations and roles.
Also, let getAffiliationList return an Error instead of `null` if you're
not allowed to fetch a particular affiliation list.
2019-08-09 23:30:14 +02:00
JC Brand
a03e722a24
Add new dev version
2019-08-09 00:58:43 +02:00
JC Brand
bc27b3a36a
Release 5.0.0
2019-08-08 18:13:12 +02:00
JC Brand
1bbe52f71c
Fixes #1670
...
Set converse-profile as dependency of converse-omemo
2019-08-08 16:20:55 +02:00
JC Brand
bea073a5a2
Fix erroneous "is no longer an admin/owner" messages in MUCs
...
Don't remove affiliation for occupants if we weren't allowed to
fetch that particular affiliation list.
Previously, if fetching the list failed, we would return an empty array,
which would imply that the affiliation list is empty and that all
users with the given affiliation should have their affiliations removed.
Instead we now return `null` and properly account for that when setting
affiliations on existing contacts based on the returned member lists.
2019-08-08 16:19:04 +02:00
JC Brand
ade6266de8
Update backbone.overview and strophe.js
2019-08-08 12:45:17 +02:00
JC Brand
720096726d
converse-chatboxes: Don't refetch chatboxes upon reconnection
...
We don't remove the existing chatboxes and upon refetching they
become stale and get removed (by Backbone) and then the UI for
them becomes unresponsive.
2019-08-07 16:12:51 +02:00
JC Brand
c0ef008c4a
converse-bookmarks: Call _converse.Collection.prototype.clearSession
2019-08-07 16:12:21 +02:00
JC Brand
b176161ecf
converse-roster: Reconnection bugfixes.
...
Don't remove cached presences in `afterTearDown` event.
We might reconnect again and resume the session, in which case we need
that data still.
Instead, we remove cached presences when `clearSession` fires, because
then we know we're not reconnecting.
When reconnecting, we don't fetch presences from cache, we still have
them (since we no longer remove them in `afterTearDown`).
When reconnecting and not resuming, we clear the presences from cache,
since we're starting a new session.
2019-08-07 16:11:36 +02:00
JC Brand
3dc2b2b695
Bugfix. List of messages need to be passed to api.alert.show
2019-08-07 12:20:20 +02:00
JC Brand
11d8450577
Add note to translators to avoid confusion
2019-08-07 10:52:20 +02:00
JC Brand
dfe8194072
Show spinner when fetching messages by scrolling upwards
2019-08-07 10:47:11 +02:00
JC Brand
271a871a51
Updated i18n po, pot and json files
2019-08-07 10:28:49 +02:00
JC Brand
5cb5ec4640
Fixes #1668 . MUC MAM blocked by "info" messages
2019-08-06 23:30:02 +02:00
JC Brand
7bfb172f6e
Updates #1548 . MAM paging improvements.
...
* Explicit forwards and backwards paging
* Include upper or lower bound when calling `RSM.prototype.next` or `RSM.prototype.previous`
* Bugfix: Don't override new RSM parameters (caused infinite recursion)
2019-08-06 22:54:51 +02:00
JC Brand
0d2c36dca6
converse-muc: use minimized attr instead
2019-08-06 13:32:52 +02:00
JC Brand
8864925407
Bugfix. Make sure new attrs are applied.
2019-08-06 13:07:41 +02:00
JC Brand
bda567ca01
Fix linting errors
2019-08-05 11:26:48 +02:00
JC Brand
db550b3ec7
Rename controlboxInitialized
to controlBoxInitialized
...
to conform to conventions
2019-08-05 11:10:39 +02:00
JC Brand
ef5ecb2f3a
Decouple converse-controlbox and converse-profile
2019-08-05 11:07:38 +02:00
Réda Housni Alaoui
edcb8e28c2
Fix #1664 Blacklisting converse-profile makes the control box totally blank
2019-08-05 11:01:39 +02:00
JC Brand
d90bcd5274
Combine two versions of isOnlyChatStateNotification into one
...
Also fix a bug in the code dermining whether an XMLElement stanza is only a chat state notification
2019-08-05 10:58:38 +02:00
JC Brand
7a590f7c22
Stop using certain lodash methods.
...
* _.isNil
* _.noop
* _.isNull
2019-08-05 10:56:22 +02:00
JC Brand
78c7ded2e5
converse-disco: Catch and report errors that happen during tests
2019-08-05 10:33:00 +02:00
JC Brand
021143d6ac
Bugfix. Don't clear roster when tearing down
...
We do that in `clearSession` and otherwise when we auto-reconnect we end
up without a roster.
2019-08-04 01:38:41 +02:00
JC Brand
7861ed7b54
Fixes #1403 : Rename show_chatstate_notifications
...
to `show_chat_state_notifications`
2019-08-03 21:52:14 +02:00
JC Brand
8a9a0a4b19
Add support for paging through MAM results when catching up
...
Fixes #1548
2019-08-03 21:44:02 +02:00
JC Brand
c7b6bb4773
Only clear messages when clear_messages_on_reconnection
is true
2019-08-03 21:43:06 +02:00
JC Brand
c038794fb5
converse-mam: Light refactoring and cleanup
2019-08-03 21:43:06 +02:00
Réda Housni Alaoui
c2db667321
Shadow dom: TypeError: Cannot read property 'parentElement' of null caused by MinimizedChatsToggleView
2019-08-02 16:30:25 +02:00
JC Brand
5f0a0138a0
Finegrained config of XEP-0095 CSNs for MUCs as well
2019-08-02 12:05:19 +02:00
JC Brand
ec85490f1c
Allow configuration of which XEP-0095 CSN's may be sent out
2019-08-02 11:34:24 +02:00
JC Brand
550d0ae31b
Bugfix. Chat state should be set to active on chat maximized
2019-08-02 11:15:17 +02:00
JC Brand
6dbc0a0637
converse-dragresize: Remove the resize event listener
2019-08-02 10:47:05 +02:00
JC Brand
3b29e5754d
Don't unnecessarily fetch the roster
...
If we've fetched the roster before within this session, then we don't
have to do so again, regardless of whether versioning is supported or
not, otherwise, even if we have a cached roster, we still need to get
the latest one again.
2019-08-02 10:46:30 +02:00
JC Brand
d5ed1bfafe
Remove the coupling between converse-controlbox and converse-rosterview
2019-08-02 09:12:04 +02:00
JC Brand
0b43082383
Add check and update changelog
2019-08-01 16:26:29 +02:00
JC Brand
cd392bb197
Fixes #1561 Don't clear localStorage and sessionStorage
2019-08-01 11:34:14 +02:00
JC Brand
1bc9a7f809
Ensure JID is set when userSessionInitialized
triggers.
...
Otherwise `converse.features` cache id contains `null` instead of the
user JID and it doesn't clear correctly.
2019-08-01 08:57:34 +02:00
JC Brand
f0f7cfab42
Make the chatbox messages cache key overridable
2019-07-31 17:19:50 +02:00
JC Brand
5b64b5a0e3
The locales URL should be absolute
2019-07-31 16:13:33 +02:00
JC Brand
1eb2364336
Let sendMessage
return the message model, not just the text
2019-07-30 16:15:47 +02:00
JC Brand
afa2543492
Honour the auto_login
flag
...
by not logging in automatically when `auto_login` is `false` and we're
using anonymous, external or prebind authentication.
For `authentication` set to `login` the situation is much more
ambiguous, since we don't have a clear distinction between wether we're
restoring a previous session (`keepalive`) or whether we're
automatically setting up a new session (`auto_login`).
So currently if *either* `keepalive` or `auto_login` is `true` and
`authentication` is set to `login`, then Converse will try to log the
user in.
2019-07-29 16:35:17 +02:00
JC Brand
f12c024b99
Don't query MAM upon every page load.
...
Instead we should only query for newly created chats.
2019-07-29 15:41:03 +02:00
JC Brand
8bd72eed72
Don't keep on refetching roster if the service is unavailable
...
`sendIQ` now takes a flag to turn of rejection of the promise and to
resolve on error IQs instead.
2019-07-29 14:33:37 +02:00
JC Brand
bdbcec65c6
Update JSDoc strings. Combine two methods
2019-07-29 11:36:37 +02:00
JC Brand
aa30e4d9e8
Bugfix. Don't unnecessarily fetch roster again when it's empty
2019-07-29 11:20:33 +02:00
JC Brand
e20b654876
Stop using _.isUndefined
2019-07-29 10:32:29 +02:00
JC Brand
caad85f45b
Manually remove BOSH session tokens from cache
...
even if the `_converse.bosh_session` instance does not exist.
We do this to avoid trying to reconnect with stale tokens upon
reconnection. Especially relevant for anonymous connections, but could
also be applicable when switching between websocket and BOSH connections
when reconnecting.
Also renamed `startNewBOSHSession` to `startNewPreboundBOSHSession`
2019-07-29 10:08:38 +02:00
JC Brand
f9cc51b28a
Bugfix. Make sure that restoreBOSHSession
is always called
...
I.e. also when we're reconnecting.
Otherwise the `_converse.bosh_session` object doesn't get recreated and
we don't cache the BOSH tokens.
2019-07-29 10:05:31 +02:00
JC Brand
179c0810c7
Prioritise logging in with credentials_url...
...
above logging in with passed in JID and password, since the password
might be an expired token.
2019-07-26 20:03:32 +02:00
JC Brand
778b4ff131
Bugfix. Fix check for debounced reconnection
2019-07-26 20:02:56 +02:00
JC Brand
5a48f3da23
Clone auto_join_rooms values before passing in
...
otherwise values get tacked on, causing problems when reconnecting.
2019-07-26 19:30:01 +02:00
JC Brand
6dd4fc5234
Tear down previous session when reconnecting anonymously
...
Because when we reconnect anonymously, we get a new JID, so it's as if
it's a completely new user.
2019-07-26 19:29:01 +02:00