Commit Graph

1042 Commits

Author SHA1 Message Date
JC Brand
4c6bd1f49c Cleaner separation between minimize/trimming feature and core
One visible effect is that when this component is now removed,
minimize buttons are not visible on the chat boxes.

updates #622
2016-03-31 08:40:25 +00:00
JC Brand
5bb76b103c Fix jquery not defined 2016-03-16 12:44:51 +00:00
JC Brand
685ea5e1fd Trigger event once converse has been loaded. 2016-03-16 12:05:16 +00:00
JC Brand
08222182c5 Move VCard functionality into separate plugin 2016-03-16 11:21:27 +00:00
JC Brand
7039dbe01b Move chat minimization to a separate plugin 2016-03-14 16:38:43 +00:00
JC Brand
1676258c38 Move the MAM features to a separate plugin. 2016-03-14 14:04:36 +00:00
JC Brand
df3bcad0b3 Move roster view code into a separate plugin 2016-03-14 14:04:36 +00:00
JC Brand
fe47773c7f Move ChatView into separate plugin. 2016-03-14 14:04:36 +00:00
JC Brand
a1b31cd1ed Initial work on adding support for headline messages. 2016-03-14 14:04:31 +00:00
JC Brand
4a9146460d Fix random fails in FF due to different module loading times
According to the require.js documentation, if you are using "require" in HTML,
then the data-main attribute should not be used.

http://www.requirejs.org/docs/api.html#data-main

So merged main.js into converse.js, which appears to solve the problem.
2016-03-07 16:35:08 +00:00
JC Brand
7f5962a177 Add plugin for HTML5 notifications. updates #443 2016-02-29 20:59:11 +00:00
JC Brand
7e8a11df88 Some cleanup refactoring of how stuff is built.
Strophe.ping.js was still in the no-dependencies build

Also clean up wrapper-end.js a bit as well as the grouping of dependencies in
non_amd.html

Remove locales from utils.js and include it in converse.js so that the locales
can more easily be removed from the build.
2016-02-28 00:33:24 +00:00
JC Brand
e79c204241 Refactor the API out into a separate module, src/convers-api.js
Plugins are now also updated so that they can get the closured converse object
directly and don't need to rely on _super.
2016-02-20 15:06:12 +00:00
JC Brand
f371b62157 Move XMPP Ping code to a plugin. 2016-02-19 13:02:31 +00:00
JC Brand
cb241dd594 Moved all the registration code into a plugin 2016-02-19 10:43:46 +00:00
JC Brand
9eba9989dc OTR stuff has been moved to a component/plugin in src/converse-otr.js
Also fixed errors with converse obj not being defined in the MUC plugin.
2016-02-16 07:47:16 +00:00
JC Brand
576efc4815 Initial work on breaking converse.js up into components
First component to remove is MUC which was moved to src/converse-muc.js
The components are written as plugins and use converse.js's plugin machinery.

Update the plugin docs somewhat with new insites found while working on the muc
plugin.
2016-02-16 07:47:08 +00:00
JC Brand
02e74ed377 Merge pull request #587 from davec82/master
logout if you are using auto_login=true
2016-02-16 08:41:32 +01:00
rlanvin
6599b70602 Don't steal focus when the chatbox opens automatically
- Adding a new parameter "focus" to ChatBoxView.show
- Removing the parameter "callback" not used
2016-02-15 18:19:14 +02:00
rlanvin
1d005a5612 Keep scroll position on minimize/maximize 2016-02-15 14:37:53 +02:00
Davide Colombo
c29534801a disable auto_login on logout 2016-02-12 15:26:39 +01:00
Christopher Rüprich
aec966e36a Fix for issue #261
When converse is first initialized this.model.get('closed') is undefined, at least with some configurations. This patch initializes the attribute with !show_controlbox_by_default if it is undefined.

Update CHANGES.md

fix make check

Update CHANGES.md
2016-02-11 11:05:57 +01:00
JC Brand
cbdda26a19 New release: 0.10.1 2016-02-06 09:23:50 +00:00
JC Brand
26b45be9e0 Clear the roster when a BOSH session can't be restored
Fixes #555
2016-02-06 09:08:05 +00:00
m0cs
ca222415b7 A cleaner reconnect timeout. 2016-01-25 10:03:23 -03:00
rlanvin
8d495d30fe Fix #487
Emptying the resources array when the resource is null
2016-01-19 13:52:04 +02:00
JC Brand
dcf09ee924 Add new option include_offline_state which is by default false
We remove the offline state as a choice in the dropdown because
'offline' is not a valid XMPP state and it doesn't propagate across tabs.

Updates: #547
2016-01-18 10:40:59 +00:00
JC Brand
bc571732e0 Sort config variables. 2016-01-18 10:18:54 +00:00
JC Brand
98a7033078 Fixes #520.
Two new configuration settings: locked_domain and default_domain.
2016-01-15 09:31:36 +00:00
JC Brand
1884621f3f Bugfix. Avoid passing IQ to sendPresence. 2016-01-15 09:02:48 +00:00
JC Brand
f779b9a3c0 Fixes #535. Room doesn't get opened when mixed-case JID is used. 2016-01-15 08:49:19 +00:00
JC Brand
6dcafb5b2c Don't scroll down on event notifications
(when user manually scrolled up).

Updates #352
2016-01-15 07:40:40 +00:00
JC Brand
9fe6087e39 Simplify the logic of when to send out a presence stanza.
Updates #521 and #536.

Turn the logic around so that a presence stanza is always sent out, except in
the single case where we know for sure that the session was restored, in which
case a presence stanza is not required becaus we "never left".
2016-01-15 05:40:17 +00:00
JC Brand
9d7b41cd96 Fixes #540. Remove deprecated way of initializing plugins.
Should already have been removed in the previous release.
2016-01-14 21:09:35 +00:00
JC Brand
48c6e3778b Fixes #521 and fixes #536 (hopefully)
Make sure to send out a presence stanza when one of the following:
1. The connection dropped and the user logged in again
2. Websockets are used (each session is established anew)
3. Keepalive isn't being used in BOSH (each session is established anew).
2016-01-13 20:25:56 +00:00
andreabenini
3011461fdb Update converse.js 2015-12-02 11:11:06 +01:00
JC Brand
d36775fe91 Fixes around resizing of chats.
- The .box-flyout container also needs it's width set upon page load.
- Remove custom height/width upon viewport change (if viewport is small enough).
2015-11-05 10:02:23 +00:00
JC Brand
ea701f3865 updates #493
Compare bare JID of from attr in roster update. @teseo's fix was too specific
and tailored for a misbehaving server (servers shouldn't be sending from the
full JID in a roster push).
2015-11-04 18:00:44 +00:00
JC Brand
341d5e746d Update styling for the status change form. 2015-11-03 17:14:13 +00:00
JC Brand
984c74b516 Updates after testing on IE edge. 2015-11-03 16:42:39 +00:00
JC Brand
1dffa823dd Fixes #459 2015-11-02 00:16:45 +00:00
JC Brand
80d8b89797 Remove the VCard rendering code.
Probably won't make it in next release.
2015-11-01 23:26:24 +00:00
JC Brand
43b9fa0fc8 Initial work on rendering VCard info in chat box 2015-11-01 02:31:59 +00:00
JC Brand
9436f6ed2f Initial updates to the chat head look.
- Round buttons
- Make the head taller
- Wrap name
- Add "view" button for viewing vcard data (needs JS code still).
2015-10-31 18:29:43 +00:00
JC Brand
b767051d9d Remove "is typing" notification after 10 seconds. fixes #508 2015-10-31 17:38:51 +00:00
JC Brand
c0863d3eb2 Fixes #510 Collection should not get an id. 2015-10-31 17:28:05 +00:00
JC Brand
7a5cd11c3c Bugfix. Occupants list not shown after save/cancel of config form 2015-10-31 16:57:36 +00:00
JC Brand
dfcebeb621 Rename participants to occupants. 2015-10-31 16:48:50 +00:00
JC Brand
35a4f9bd7e Update the JS to better render the chatroom config form.
Other small tweaks as well.
2015-10-31 16:18:31 +00:00
JC Brand
4a8b5da197 Some work on nicer rendering of chat room form.
Still needs more work. Needs <fieldset> tags.
2015-10-31 13:02:47 +00:00