JC Brand
a2fef1277c
Don't render labels for hidden inputs
2018-07-02 20:22:16 +02:00
JC Brand
d335173fd7
Bootstrap markup for auto-generated forms
2018-07-02 20:18:22 +02:00
JC Brand
e64edf19b4
Use "Groupchat" instead of "Chatroom"
2018-07-02 16:27:58 +02:00
JC Brand
4331f920cf
Fix failing tests
2018-07-02 15:23:49 +02:00
JC Brand
c6d7317bb2
Show the topic in the room info modal
2018-07-02 13:41:15 +02:00
JC Brand
1880b3f209
Nicer rendering of MUC disconnection messages
2018-07-02 12:52:19 +02:00
JC Brand
eb1f462e07
Handle all presence stanzas sent from the room
...
Our handler was too restrictive due to the namespace matching.
When joining a room and the room's remote server can not be found, then
the resulting error messages doesn't not have the MUC namespace.
2018-07-02 12:52:13 +02:00
JC Brand
118a84f111
Bugfix. Make sure outgoing messages all have unique ids
2018-07-01 12:01:07 +02:00
JC Brand
e2b5f1d15e
Don't reuse the forwarded stanza's id
2018-07-01 11:46:16 +02:00
JC Brand
648c0387dd
Refactor message sending
...
so that we don't have to always wait for stanza creation.
We only need to wait when OMEMO is active, so we keep the waiting
contained to that usecase.
2018-07-01 11:45:58 +02:00
JC Brand
6785eff4a7
Merge branch 'master' into converse-omemo
2018-07-01 11:44:04 +02:00
JC Brand
e5c030c15a
Render max 2 newlines
2018-06-30 16:15:27 +02:00
JC Brand
6e99af698d
Merge branch 'timetag' of https://github.com/Zash/converse.js into Zash-timetag
2018-06-30 15:12:57 +02:00
JC Brand
b5a27b34a1
Render newlines
2018-06-30 15:07:30 +02:00
JC Brand
cc98cea009
Fix failing tests by waiting appropriately
2018-06-30 14:01:47 +02:00
JC Brand
9a60b5bb15
Let api.disco.info
use api.sendIQ
(and therefore be promise based)
2018-06-30 14:01:47 +02:00
Joachim Vandersmissen
878b106c7b
Allow for shift-enter to insert newlines ( #1115 )
...
* Allow for shift-enter to insert newlines
See issue #1081
* Update CHANGES.md
2018-06-19 06:41:22 +02:00
JC Brand
3dac4ae45c
Add support for logging in with OAuth
2018-06-13 18:39:51 +02:00
JC Brand
a2dec2371d
Bugfix. jid
of null
was set on own VCard
...
Also made a few other minor improvements and did some cleanup.
2018-06-12 12:14:49 +02:00
JC Brand
7b19483271
Rename push_services
to push_app_servers
to avoid confusion
2018-06-11 14:17:34 +02:00
JC Brand
a09333f82c
Allow multiple push services to be enabled and also allow disabling
2018-06-07 16:25:59 +02:00
JC Brand
5954cd8f29
Avoid duplicating entities
2018-06-07 15:27:11 +02:00
JC Brand
6126781d83
Proper checking of disco support for push notifications
2018-06-07 15:00:36 +02:00
JC Brand
6cd9d2e813
Rename _tearDown
to tearDown
and rebuild
2018-06-07 14:30:10 +02:00
JC Brand
2cdd46f6dc
Don't close chatboxes after disconnection has already happened
...
Otherwise it attemtps to send out stanzas (causing `this.socket is null`
errors when using websocket).
2018-06-07 14:29:47 +02:00
JC Brand
5d62023701
Only fetch VCards once we're already connected
2018-06-07 14:28:20 +02:00
JC Brand
d4d03925b8
Set hidden
to true
by default for chats in singleton mode.
...
However, when a new chat is created due to an incoming message, and
there aren't any other chats visible, then show it.
2018-06-07 14:09:19 +02:00
JC Brand
37b622251e
Improve and simplify unread message notifications in the roster
...
Use one event instead of two, by listening to `num_unread` on chatboxes.
2018-06-07 13:40:20 +02:00
JC Brand
083f191ead
Consider delayed, non-archived messages as "new"
...
New in the sense that we haven't seen them before
2018-06-07 13:06:32 +02:00
JC Brand
ec65bb3512
createMessage
doesn't need the delay parameter
2018-06-07 12:37:56 +02:00
JC Brand
57b4dec5a0
Bugfix. Validation messages wasn't being shown
...
due to Awesomplete doing things to the DOM and then confusing Snabbdom.
2018-06-06 18:31:04 +02:00
JC Brand
7ee71b0132
Add a plugin for XEP-0357
...
Currently only allows enabling an "App Service", based on pass-in
configuration values.
2018-06-06 14:00:52 +02:00
JC Brand
eed141b53e
Remove unnecessary path aliases from the webpack config
2018-06-06 11:04:23 +02:00
JC Brand
1dac1d781f
Don't show own typing notifications in groupchats
2018-06-06 09:57:37 +02:00
JC Brand
734f3469dd
Bugfix. Message indicator wasn't shown
...
when we received a message for a yet non-existing chat in singleton
mode.
2018-06-06 09:56:46 +02:00
JC Brand
54c6bcd861
Disconnect chatrooms upon tab reload (when using websocket)
...
This is a workaround until we have support for XEP-0198
updates #1111
2018-06-06 09:56:35 +02:00
JC Brand
3153604823
Inform user of error messages which don't have text
2018-06-05 13:14:24 +02:00
JC Brand
a3fe6162c1
Proper MUC reconnection is handled in converse-muc-views
2018-06-05 13:01:47 +02:00
JC Brand
ca9d53a653
These didn't have the intended effect.
...
Calling `remove` without models does nothing
2018-06-05 12:42:49 +02:00
JC Brand
bea76e5b2b
Use the logout event, instead of an override
2018-06-05 12:42:49 +02:00
JC Brand
ee5e77e851
Remove call to non-existing method
2018-06-05 11:14:51 +02:00
JC Brand
78d6d493d6
Add info icon in room header and show room details in modal
2018-06-04 19:54:11 +02:00
JC Brand
f7c3351e2b
Merge branch 'master' into webpack
2018-06-04 13:46:27 +02:00
JC Brand
bc872ee2cb
Fix various failing tests and update Makefile
2018-06-04 11:20:34 +02:00
JC Brand
74eed32e82
Add shims to webpack config and fix bugs in templates
2018-06-02 17:18:42 +02:00
JC Brand
8948be1d3d
In mobile view, add arrows to chat headings
...
so that you can navigate "back" to the controlbox.
2018-06-01 14:57:19 +02:00
JC Brand
b00567a0ea
Fix styles for mobile view
2018-06-01 12:49:45 +02:00
JC Brand
2ca382b7a5
Move const declarations out of initialize method
2018-06-01 12:21:41 +02:00
JC Brand
b02c70b4ea
Check the view_mode on the fly
...
instead of disabling the plugin immediately.
This allows us to change the view_mode dynamically.
2018-05-31 06:41:53 +02:00
JC Brand
9c6c90a4fc
Move config settings into the relevant plugins
2018-05-31 06:38:40 +02:00
JC Brand
195a9781c1
Use an event instead of an override
2018-05-30 17:18:41 +02:00
JC Brand
5e97db95f9
Add a close button on the occupants sidebar
2018-05-30 16:55:28 +02:00
JC Brand
8c983ab2a3
Use different icon for adding a groupchat
...
Fixes #1072
2018-05-30 16:38:51 +02:00
JC Brand
d384c70929
Use double angle brackets as occupants toggle icon
...
updates #1072
2018-05-30 16:27:45 +02:00
JC Brand
d205afe3a2
Don't try to render register link if auto_login is true
2018-05-30 16:04:56 +02:00
JC Brand
4e67b420ba
New event streamFeaturesAdded
2018-05-29 12:04:42 +02:00
JC Brand
291fceeb74
Make sure disco info is stored in sessionStorage
...
Otherwise we might have stale disco info and no way to invalidate the cache.
2018-05-28 13:59:38 +02:00
JC Brand
bb95375f9c
Support for roster versioning
...
fixes #1106
2018-05-28 13:59:11 +02:00
JC Brand
4cfade2843
Add support for stream features to converse-disco
2018-05-28 11:40:33 +02:00
JC Brand
e8a26eb185
Store the roster version
...
updates #1106
2018-05-28 10:31:52 +02:00
JC Brand
43d0932d78
Update roster push handling code
...
- Remove misleading comment and fix conditional logic
- Check that there's only one <item> element.
updates #1106
2018-05-28 09:36:12 +02:00
JC Brand
ec609a3883
Refetch VCards which we couldn't retrieve before
2018-05-25 16:25:02 +02:00
JC Brand
ab4d0204f3
Update all vcards that might be associated with an occupant
2018-05-25 15:55:34 +02:00
JC Brand
6dc9e8edf1
Use webpack for module bundling
2018-05-25 14:23:32 +02:00
JC Brand
eff656931c
Move code for handling own presence into new method
...
Fix two bugs as well.
- Pass by reference bug for presence defaults
- querySelector for `delay` returned nothing (use sizzle instead)
2018-05-24 15:47:27 +02:00
JC Brand
c0080390a7
Only initialize presence collection after login
2018-05-24 15:09:01 +02:00
JC Brand
a85401627c
Combine inverse/converse chatrooms css
...
updates #1091
2018-05-24 12:45:10 +02:00
JC Brand
63f659326b
Store VCard JID on the groupchat message
...
for easier retrieval later and to work around MUC's inability to
retrieve VCards for users not in the MUC.
2018-05-24 10:50:07 +02:00
JC Brand
adad60e298
Refactor so that nick-deduplication takes VCard nick into account
...
Updates #968
2018-05-24 10:24:48 +02:00
JC Brand
3849f56270
Swop buttons and try to make column responsive
2018-05-24 10:18:27 +02:00
JC Brand
e76dc01265
Use nickname from VCard when joining a room
...
updates #968
2018-05-24 10:15:58 +02:00
JC Brand
dd51ad8618
Bugfix. Nickname wasn't being set correctly in vcard
2018-05-24 10:15:25 +02:00
JC Brand
dd5f6f1025
Show join/leave notifications for members who go offline
...
updates #1094
2018-05-24 09:48:01 +02:00
JC Brand
04e95a17c5
Make sure converse-muc-views
is loaded first (if available)
2018-05-24 09:09:09 +02:00
JC Brand
d484320c09
Test that bundles can be updated via PEP
...
Fix bugs in the process
udpates #497
2018-05-23 12:51:01 +02:00
JC Brand
ddd0ef8e20
Test that device lists can get updated via PEP
...
Fix various bugs in the process.
updates #497
2018-05-23 12:51:01 +02:00
JC Brand
41db49ffca
Initial code for handling a bundle update via PEP
...
udpates #497
2018-05-23 12:51:01 +02:00
JC Brand
839210f87c
Fetch and parse bundles, then generate sessions for them
...
udpates #497
2018-05-23 12:51:01 +02:00
JC Brand
5b9f81099b
More OMEMO work
...
- Implement storage interface required by libsignal
- Add some skeleton code for building sessions and sending encrypted messages
updates #497
2018-05-23 12:51:01 +02:00
JC Brand
f906761dc0
Initial work on sending a different stanza for OMEMO messages
...
updates #497
2018-05-23 12:51:01 +02:00
JC Brand
a99e7a317e
Change lock icon when clicking the toggle
...
updates #497
2018-05-23 12:51:01 +02:00
JC Brand
61dcebbbf6
When generating a device id, check whether it already exists
...
and if so, generate a new one.
To do so we have to change the order of events.
1. first we fetch our device list
2. then we generate our bundle info (if necessary)
3. then we update our device list (if necessary)
4. then we publish our bundle
updates #497
2018-05-23 12:51:01 +02:00
JC Brand
fd3bb570cd
Add an omemo_active
flag on the chatbox
...
updates #497
2018-05-23 12:51:01 +02:00
JC Brand
9645641505
Add own device to the server-stored devicelist
...
updates #497
2018-05-23 12:51:01 +02:00
JC Brand
281865d9b1
Based on feedback from @iNPUTmice, no need to check for PEP support
...
Since you can still start OMEMO sessions with contacts without it, they
just can't create sessions with you.
2018-05-23 12:51:01 +02:00
JC Brand
09eb1731b5
Add code to generate and publish our bundle and update the test
...
updates #497
2018-05-23 12:51:01 +02:00
JC Brand
6042c233bc
Add test that the OMEMO toolbar button renders
...
Fix and improve accordingly. updates #497
2018-05-23 12:51:01 +02:00
JC Brand
2f149a0ea2
Fetch devices upon devicelist creation
...
updates #497
2018-05-23 12:51:01 +02:00
JC Brand
0c50808b65
Add missing declaration and don't run OTR tests
...
Add 3rd party dependencies
updates #497
2018-05-23 12:51:01 +02:00
JC Brand
e833af14bf
updates #497
...
Various fixes to code checking for server and contact client support
2018-05-23 12:51:01 +02:00
JC Brand
bfc246d9c7
Disable OTR and add code for adding the toolbar button.
2018-05-23 12:51:01 +02:00
JC Brand
039f30a5d3
Add 3rdparty dependencies (used by libsignal)
...
Hopefully later we can use NPM for them, first want to get things to work
2018-05-23 12:51:01 +02:00
JC Brand
7b28cb7943
updates #497
...
Initial work on adding OMEMO support
2018-05-23 12:51:00 +02:00
JC Brand
3f0920a8c4
Don't remove occupants who are on member lists.
...
updates #1094
2018-05-23 12:48:11 +02:00
JC Brand
9afc344b89
We no longer clear the whole roster, only presence data
2018-05-23 04:34:38 +02:00
JC Brand
f0b1295577
Updates #1098 IE doesn't support document.contains
2018-05-23 04:22:47 +02:00
JC Brand
9500900f22
Make sure bookmarks are cleared before re-initializing
...
Otherwise subtle, hard-to-reproduce bugs happen while testing.
Also, don't unnecessarily call `delegateEvents`, it also causes
heisen-breakage.
2018-05-22 21:59:17 +02:00
JC Brand
36fd859a88
Store presence info in a separate collection
...
So that we can cache roster data for longer and presence data for
shorter.
2018-05-22 21:09:43 +02:00
JC Brand
b939de03bc
Make sure that the textarea resizes back to original size
...
after sending
2018-05-19 08:22:57 +02:00
JC Brand
fe8b257243
Looks like we stopped supporting EXTERNAL auth
2018-05-19 08:22:24 +02:00