JC Brand
c9084e4ed5
muc-views: Present challenge to destroy
confirmation
...
And also allow the user to specify the JID to where the conversation has
moved to.
2020-04-15 09:30:10 +02:00
JC Brand
16c58a966a
modal: Add ability to show multiple input fields for confirm modal
2020-04-15 09:29:52 +02:00
JC Brand
78b1a5c42a
Show send button by default
2020-04-14 14:49:09 +02:00
JC Brand
5cb65d84f1
Bugfix. Don't assume OMEMO store is always there
2020-04-14 14:04:26 +02:00
JC Brand
5ea7a4d127
MUC: Small updates to message fetching and queueing
...
- Always clear queue after fetching messages from cache
- Empty `message_queue` without waiting for all messages to first be processed.
- Don't assume that `this.messages` is set by the time `queueMessage` is called
2020-04-14 12:29:12 +02:00
JC Brand
df9612f937
Add support for XEP-0317 MUC Hats
2020-04-13 22:57:29 +02:00
JC Brand
e2a7045e22
Move MUC presence parsing code to src/headless/utils/stanza.js
2020-04-13 18:22:15 +02:00
JC Brand
a1d5563963
Move OMEMO-related message parsing to utils/stanza.js
2020-04-13 17:44:47 +02:00
JC Brand
ce1f7e090e
Rename getMessageAttributesFromStanza
to parseMessage
2020-04-13 17:44:47 +02:00
JC Brand
fef5292a12
Replace JID with 'XMPP Address'
2020-04-13 14:46:31 +02:00
JC Brand
2dd6bc85ea
Fixes #1961
...
Make sure dist dir is included in headless NPM package
2020-04-13 11:45:02 +02:00
JC Brand
8824bb26c4
Bump various dependencies
2020-04-13 11:39:00 +02:00
JC Brand
e91a38547a
MUC: create role/affiliation change message objects
...
in @converse/headless instead of injecting HTML via the view
2020-04-13 11:21:40 +02:00
JC Brand
08b402a9c1
MUC: check for author to avoid "cleared" message for empty subject
2020-04-10 20:47:07 +02:00
JC Brand
bd00bc4bca
muc-views: move event listeners further down
2020-04-10 16:49:02 +02:00
JC Brand
c4c7e41981
MAM: better error logging
2020-04-10 16:04:46 +02:00
JC Brand
8b496d085e
Enable XEP-0156 support by default
2020-04-10 15:25:49 +02:00
JC Brand
35de251ce7
Make sure IQ timeouts are properly logged
2020-04-10 14:41:23 +02:00
JC Brand
4425c3dde7
Always show a new topic, even if the previous one was hidden
2020-04-08 14:31:18 +02:00
JC Brand
bc4d016557
Don't show duplicate topic change notifications
2020-04-08 13:08:15 +02:00
JC Brand
c4ba6735ba
Bugfix. Can't cast undefined to array
2020-04-07 22:15:36 +02:00
JC Brand
a065b0c88c
MUC: Clear typing notification when a message is received
2020-04-07 22:04:25 +02:00
JC Brand
c7e702368b
Properly clear user settings
...
by first waiting until the model has been set up.
2020-04-07 19:07:51 +02:00
JC Brand
fe635989a1
Add support for Finnish translations
2020-04-07 13:47:34 +02:00
JC Brand
9a6d6ddd1f
muc-views: don't assume we already have the occcupant
2020-04-07 13:07:16 +02:00
JC Brand
8c5e4b95d0
Updates #1939 : Enable smooth scrolling for short distances
2020-04-07 13:06:37 +02:00
JC Brand
5fd316816d
MUC: Don't show topic change notification for old changes.
...
Also, show topic by creating a message object, instead of directly
inserting HTML into the DOM. This is a necessary precursor to being able
to render chat messages via lit-html/lit-element.
2020-04-07 11:49:12 +02:00
JC Brand
3e27a5ec81
Template fix. Don't render boolean value
2020-04-07 10:29:28 +02:00
JC Brand
e18fe5e212
Use the getHeadingButtons
hook instead of overrides
2020-04-07 10:20:43 +02:00
JC Brand
75d64c04d9
Add a hooks API
...
for triggering interceptable events with the goal of modifying data.
2020-04-06 17:22:06 +02:00
JC Brand
121a3f9bed
minimize: Use events instead of overriding initialize
methods
2020-04-06 17:22:06 +02:00
JC Brand
531ebf335c
Properly test and fix show/hide of MUC topic
2020-04-06 15:27:32 +02:00
Dele Olajide
10da630d8a
fix #1937 - Editing a message removes the mentions highlight ( #1938 )
...
* Fixes #1937 Editing a message removes the mentions highlight
2020-04-02 11:45:04 +02:00
JC Brand
bb9e394e93
muc: handle join/leave notifications similarly to CSNs
...
Remove the `muc_show_join_leave_status` config setting.
We don't show the optional statuses at all now.
2020-04-01 14:34:11 +02:00
JC Brand
c20dbbbbbd
Store in user settings whether a MUC topic is hidden or not
2020-03-31 22:57:22 +02:00
JC Brand
e498657323
Add API for setting and accessing user settings
2020-03-31 15:01:02 +02:00
JC Brand
6391cc0803
Rename applyUserSettings to applySiteSettings
2020-03-31 14:08:34 +02:00
JC Brand
030c26a8ab
Use api
shortcut instead of _converse.api
2020-03-31 13:16:24 +02:00
JC Brand
d057177f1b
core: Further cleanup and refactoring
2020-03-31 12:51:30 +02:00
JC Brand
8b1d4e0e9d
core: refactor initialize method to make it as small as possible
2020-03-31 12:28:11 +02:00
JC Brand
631b9bb438
Use the settings API for setting and getting config settings
...
This is an initial step towards no longer storing and accessing settings
directly via the `_converse` object
2020-03-31 11:57:03 +02:00
JC Brand
8d81637388
Bugfix. Make sure empty history feedback message gets removed
...
when messages appear
2020-03-30 05:34:47 +02:00
JC Brand
095a1bc56b
Fixes #1490 . Don't reconnect if were weren't auth'd to begin with.
2020-03-30 05:29:21 +02:00
JC Brand
690ff1fba1
Fixes #1860
2020-03-30 04:13:46 +02:00
Holger Weiß
63b1886f50
Add missing space left to "Open Groupchats" label ( #1925 )
2020-03-26 11:30:40 +01:00
JC Brand
321a54323e
Allow moderators to retract their own messages...
...
when retractions are restricted to mods only
2020-03-26 10:35:08 +01:00
JC Brand
e363c02041
CSS: display rendered images as blocks
2020-03-25 10:39:41 +01:00
JC Brand
42235167f8
Bugfix. Fall back to JID if nick is not set
2020-03-25 09:02:31 +01:00
JC Brand
e3bd7b45f5
Distinguish between chat content and messages content.
...
Fixes a bug that prevented scrolling from working correctly
2020-03-24 14:34:57 +01:00
JC Brand
dc2eb30120
Bugfix
2020-03-24 12:49:35 +01:00
JC Brand
967154d314
Use optional chaining instead of lodash.get
2020-03-24 12:30:45 +01:00
JC Brand
7812d4e7b6
Show chat state notifications inside the scrollable area
...
Rename CSS class to conform to convention
2020-03-24 11:28:50 +01:00
JC Brand
4727f3b3bb
Add support for optional chaining and nullish coalascing
2020-03-24 09:38:32 +01:00
JC Brand
5e27579ebe
Don't ignore groupchat messages that also contain a CSN
2020-03-23 20:54:27 +01:00
JC Brand
57709b2e78
Sort modtools search results by nickname
2020-03-23 18:06:36 +01:00
JC Brand
00cac6d250
Add the ability to filter the results in the modtools modal
2020-03-23 14:34:19 +01:00
JC Brand
b5d57f0ef8
Handle and render chat state notifications separately from messages
2020-03-21 17:21:53 +01:00
JC Brand
283a810d6b
Use lit-html to render chatbox outlines
2020-03-21 17:21:53 +01:00
Rémy Grünblatt
bf063d4df7
Fix oauth provider template ( #1916 )
2020-03-20 11:31:35 +01:00
JC Brand
ca012d4479
Update to newer Skeletor.js
...
`.forEach` on a Collection no longer returns the models, so need to
update some tests.
2020-03-12 15:24:29 +01:00
JC Brand
89795504a2
Add support for rendering images from Twitter
2020-03-10 12:08:07 +01:00
JC Brand
6fe802a96b
Replace lodash methods with native ones
2020-03-06 15:49:48 +01:00
JC Brand
91243f64af
Replace lodash methods with native ones.
2020-03-06 14:42:05 +01:00
JC Brand
b6b00887e4
Export BootstrapModal
2020-03-06 12:24:23 +01:00
JC Brand
c9f29f76e5
Use lit-html to render URLs
2020-03-06 12:24:23 +01:00
JC Brand
366dee0aa5
Bugfix. Allow moderators to retract their own messages
2020-03-05 13:42:58 +01:00
JC Brand
a7f28cd61d
When creating message objects, wait for confirmation from storage
...
Queue messages and handle them sequentially, each time waiting for promises to
resolve before handling the next message.
Updates #1899 , which likely happens because an error message is received
before messages have been fetched.
2020-03-04 15:14:57 +01:00
Lance Stout
a6aaf3f595
Update chat state notifications when message is edited.
2020-03-03 15:24:15 +01:00
JC Brand
831e59c1a7
controlbox: Wait when saving while closing
...
Otherwise we run into race conditions while testing
2020-03-03 14:38:29 +01:00
JC Brand
8aaa1a6417
core: Make clearSession
a synchronous event
...
In order to give plugins time to properly clear data from the browser storage.
2020-03-03 10:23:46 +01:00
JC Brand
9295850789
controlbox Only call show/hide callback when the action was actually done
2020-03-03 08:21:55 +01:00
Dele Olajide
5a9f8218c8
Fix issue 1896 ( #1897 )
...
* fix issue https://github.com/conversejs/converse.js/issues/1896
* Added issue to CHANGES.md
2020-02-28 11:24:25 +01:00
JC Brand
f02caff854
Rejoin the MUC if we receive an empty message
2020-02-27 16:40:29 +01:00
JC Brand
34c4b2aa5e
Prevent empty messages from being created
2020-02-27 15:09:54 +01:00
JC Brand
804c78de81
Prevent # being added to URL when minimizing
2020-02-27 11:16:45 +01:00
JC Brand
2af93f4492
modtools: settings for which roles/affiliations may be queried or assigned
2020-02-22 23:16:22 +01:00
JC Brand
e5341d54a9
Bugfix. Dangling moderation messages not applied
2020-02-22 22:59:30 +01:00
JC Brand
61e86a3c23
Fixes #1535
...
Add option to destroy MUC in the dropdown context menu.
Also add a confirmation dialog.
2020-02-22 20:22:02 +01:00
JC Brand
7dc0b7bb13
Handle case where we don't have the occupant
...
It can now happen because we also auto-complete for nicks based on
messages in the chat
2020-02-21 17:33:46 +01:00
JC Brand
5fe23f477f
modtools: Fetch affiliation list when we haven't fetched it by default
2020-02-21 16:20:30 +01:00
JC Brand
2c5cde050e
CSS: fix bookmark indicator color and add title
2020-02-21 15:30:28 +01:00
JC Brand
c69a2abc45
modtools: Replace Backbone.View events with lit-html events
2020-02-21 15:25:57 +01:00
JC Brand
d07b9510a2
modtools: Show affiliations tab first
2020-02-21 15:01:19 +01:00
JC Brand
a1a2b501ee
modools: Restrict which affiliations and roles can be set
...
bsaed on `muc_disable_slash_commands`
2020-02-21 13:21:25 +01:00
JC Brand
cd442f27c4
modtools: Remove duplicate roles in dropdown
2020-02-21 13:06:15 +01:00
JC Brand
3c9ec96350
MUC: create references for nicks gathered from messages
2020-02-21 12:30:40 +01:00
JC Brand
2ac33c77b3
Fix linting errors
2020-02-20 19:18:06 +01:00
JC Brand
d361d1d0a3
MUC: Include nicks from messages in the mentions auto-complete list
2020-02-20 19:14:34 +01:00
JC Brand
62ef18a027
muc_fetch_members now accepts an array of affiliations
2020-02-20 18:39:56 +01:00
JC Brand
590a8862bc
Don't validate message creation
...
This causes messages to be created but then not populated, causing empty
messages appearing in the chat after page relaod.
Fixes #1886
2020-02-20 13:08:12 +01:00
JC Brand
c7e57936fb
Bugfix. Handle empty content
2020-02-20 13:08:12 +01:00
JC Brand
49817a850f
MUC: Queue messages received before we're ready
2020-02-20 07:13:04 +01:00
JC Brand
58f6d36564
MUC: wait for messages collection to be initialized
...
before processing MUC messages received prematurely due to SMACKS
resumption.
2020-02-19 14:22:24 +01:00
JC Brand
0137eb88ae
Smacks: Handle MUC messages received before the MUC exists
2020-02-19 13:39:07 +01:00
JC Brand
5b5c4595cc
Rename hide_subject
to subject_hidden
2020-02-18 17:26:49 +01:00
JC Brand
ce08819a43
Retracted moderated sent message should not be editable.
2020-02-18 16:47:52 +01:00
JC Brand
ead8cdbcd6
Retracted moderated message should not be editable.
...
Also, don't set retracted MUC messages as ephemeral, we want to keep on
showing them to provide context in a MUC.
2020-02-18 16:06:59 +01:00
JC Brand
227b70339c
Bugfix. Retracted messages shouldn't be editable.
2020-02-18 15:45:55 +01:00
JC Brand
004d2b7f23
Fix method name in log
2020-02-18 15:45:55 +01:00
JC Brand
bcbde04530
Copy sounds dir to dist and use assets_path
for sounds_path
2020-02-16 12:30:25 +01:00
JC Brand
f564a1edaf
Show reason and actor for ban/kick events
2020-02-14 13:19:12 +01:00
JC Brand
39d140005e
Change when/how chats are shown
...
Goal is to fix a timing bug that results in `show` being triggered
before the `ChatBoxView` has been initialized, which means that 1:1
chats aren't opened when you reload the page.
2020-02-14 11:06:04 +01:00
JC Brand
3400acbfeb
Show MUC buttons in a dropdown menu
...
- Get rid of the ChatBoxHeading class
- Add support for showing standalone buttons in overlay viewmode
2020-02-13 20:57:47 +01:00
JC Brand
ed411c226d
Avoid creating Message objects for empty messages
2020-02-13 16:31:13 +01:00
JC Brand
181d18fcfe
Translation and undefined variable fixes
2020-02-11 10:13:23 +01:00
JC Brand
64f5bfa09f
Don't gatekeep rendering of the chatroom heading
2020-02-10 23:21:35 +01:00
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