Commit Graph

511 Commits

Author SHA1 Message Date
JC Brand
cb241dd594 Moved all the registration code into a plugin 2016-02-19 10:43:46 +00:00
Davide Colombo
e934917685 add synchronize_availability option 2016-02-18 12:18:56 +01:00
JC Brand
8c06f917ae Restore @rlanvin's changes that were lost during merge
Fixes #596
2016-02-17 17:09:48 +00:00
JC Brand
f1b999d01a update the plugin docs
Add a UMD header so that the example plugin can be used without require.js
Remove needles cruft and dependencies.
2016-02-17 17:01:55 +00:00
Davide Colombo
2e50ecb9c1 add method to generate random resource and add random resource also for auto_login 2016-02-16 15:29:13 +01:00
JC Brand
a687e87e01 Remove deprecated API and update changelog. 2016-02-16 07:50:52 +00:00
JC Brand
e94904e4a1 Don't play sound notifications for...
OTR messages which are setting up an encrypted session.
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
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
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
a42ce378a1 Fall back to using python as xgettext language
if javascript is not supported. Fixes #573
2016-02-08 09:34:05 +00: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
b645d8fb30 Added changelog entry. 2016-01-25 10:05:45 -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
226e2e910d Arrange config options alphabetically 2016-01-18 10:41:41 +00: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
99f1a9c93d Markdown formatting in changelog. 2016-01-15 09:44:07 +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
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
28f5ee855b Fixes #546 2016-01-15 06:18:22 +00:00
JC Brand
19ad5728f9 Remove google analytics from docs. 2016-01-15 06:03:10 +00:00
JC Brand
db82333782 Add section on performance under troubleshooting chapter. 2016-01-15 05:58:34 +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
JC Brand
20910707b2 Re-add troubleshooting section that got somehow removed.
Also add an introductory section on debugging.
2016-01-13 07:55:42 +00:00
JC Brand
8f5114578b Make clear in changelog that 0.10.1 is not yet released. 2015-12-04 10:20:33 +00:00
andreabenini
2db3f364c5 Update CHANGES.md 2015-12-02 11:17:24 +01:00
andreabenini
8c14424f62 Update configuration.rst 2015-12-02 11:14:17 +01:00
JC Brand
44c7c877a6 Fix malformed table in docs. 2015-11-05 11:30:31 +00:00
JC Brand
2253ec3d00 New release 0.10.0 2015-11-05 11:23:19 +00:00
JC Brand
1fb0de06f3 Update changelog for next release. 2015-11-05 11:08:06 +00:00
JC Brand
c1d9f1e201 Converse the changelog to markdown. 2015-11-05 10:59:46 +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
1dffa823dd Fixes #459 2015-11-02 00:16:45 +00:00
JC Brand
88f043d9ca Merge branch 'master' into sass-refactor 2015-10-31 17:44:59 +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
dfcebeb621 Rename participants to occupants. 2015-10-31 16:48:50 +00:00
JC Brand
ebd0089446 Mention that controlbox stays open on page reload. 2015-10-29 14:50:18 +00:00
JC Brand
8b3ede9e56 Remove unused parts from Gruntfile
Wouldn't mind getting rid of grunt completely.
2015-10-27 09:11:36 +00:00
JC Brand
218b4714fd Add changelog entry for horizontal drag resize. 2015-10-24 20:46:58 +00:00
JC Brand
4f86a7ed58 Two small changes.
- Width needs to be set on .chatroom obj as well.
- Update docs on allow_dragresize to mention that min-width and min-height
  values are honored.
2015-10-24 20:46:58 +00:00
JC Brand
2083413431 Update changelog and small fixes to coding style guide 2015-10-24 20:46:57 +00:00
JC Brand
d14cb4c14b Update changelog. 2015-10-22 10:39:36 +00:00
Javier Mellado
bef4e26a4b Better writing. 2015-10-20 11:04:15 +01:00
Javier Mellado
b6d463b214 Update development.rst
remove capital letter.
2015-10-20 11:02:42 +01:00
Javier Mellado
5f27e25648 Better writing. 2015-10-20 11:01:05 +01:00
Javier Mellado
3142ebbb6b Force type comparison and documentation updates 2015-10-20 10:57:21 +01:00
JC Brand
af77b3189e New release: 0.9.6 2015-10-12 15:09:47 +00:00
JC Brand
6344703cb8 Merge pull request #500 from 1st8/master
Fix #467
2015-10-12 16:53:23 +02:00
JC Brand
12d6785d02 Fixes #472 Cannot read property 'splitOnce' of undefined 2015-10-12 14:24:22 +00:00
JC Brand
7d1fc391ac Don't attempt to fetch archived messages if not supported
by the server. Otherwise we get a spinner that doesn't disappear.
2015-10-12 13:22:06 +00:00
Christoph
e20018961f Fix outgoing chat messages not having a msgid when being put into sessionStorage, fixes #467 2015-10-12 11:06:12 +02:00
JC Brand
57a309177f Fix link to prosody.im 2015-10-08 12:11:48 +00:00
JC Brand
eeb8210ff6 Fixes #496. Bind converse to this in callback. 2015-10-07 08:07:05 +00:00
JC Brand
0d9d632f40 Bugfix for #493 2015-09-30 21:04:37 +02:00
JC Brand
f3e2de9945 Document allow_dragresize option. 2015-09-22 12:40:08 +00:00
Christoph Geschwind
1463e7cc33 Update CHANGES.rst 2015-09-09 13:25:53 +02:00
JC Brand
0d4cf15f0e Move changelog entry to right version and add test case. 2015-09-09 10:17:46 +02:00
Christoph Geschwind
d08ce409c8 Add #462 to CHANGES.rst 2015-09-04 13:26:33 +02:00
JC Brand
ce222e5b75 Small improvements to theming page and tweak css. 2015-08-29 11:51:41 +02:00
JC Brand
0672e84990 Correctly place config setting in right order. 2015-08-24 18:42:08 +02:00
JC Brand
6369465661 Making a new 0.9.5 release. 2015-08-24 17:56:50 +02:00
JC Brand
f7c27a08a5 Mention that MAM is now supported. 2015-07-29 14:20:39 +02:00
JC Brand
96253f9673 Document using serviceDiscovery with archive.query. 2015-07-22 00:40:51 +02:00
JC Brand
cd4aabc586 Rename the page size option and document it.
updates #306
2015-07-22 00:18:51 +02:00
JC Brand
e03db127cf Add a new configuration setting. muc_history_max_stanzas 2015-07-21 11:36:07 +02:00
JC Brand
ccf908a658 Document that previous and next RSM methods take limit parameter.
updates #306
2015-07-19 23:36:26 +02:00
JC Brand
8a6bca191a Small doc fixes. 2015-07-17 20:57:00 +02:00
JC Brand
99c7b9cb95 Add a new emitted event: serviceDiscovered.
Gets thrown every time converse learns of a supported server service.
Useful when 3rd party code wants to use API methods that depend on the service
being discovered first.
2015-07-17 20:34:48 +02:00
JC Brand
080d86e7fe Show most recent archived messages first.
- Also ensure that the archive.query API always return messages chronologically.
- Fix docs which wrongly state that null can be passed in.

updates #306
2015-07-17 17:56:47 +02:00
JC Brand
6cd9fb5500 Merge branch 'master' into mam 2015-07-14 10:43:35 +02:00
JC Brand
7fd475e2a3 Avoid adding a falsey value as resource. fixes #440 2015-07-14 10:27:40 +02:00
JC Brand
69de033cea Write documentation for the archive API. Also add another test.
update #306
2015-07-12 21:27:22 +02:00
JC Brand
ae58e3d1be Merge branch 'master' into mam 2015-07-11 13:53:28 +02:00
JC Brand
1766aa75f2 Bugfix: keepalive and autologin aren't mutually exclusive.
fixes #439
2015-07-11 13:51:44 +02:00
JC Brand
eeeaddbe04 Add the ability to read and set MAM preferences. 2015-07-10 15:24:13 +02:00
JC Brand
14c64151ab New release: 0.9.4 2015-07-04 17:21:21 +02:00
JC Brand
0afa7ec188 Don't carbon copy OTR messages. 2015-07-03 11:41:14 +02:00
thierrytiti
f514081a78 Cleanup references to strophe.roster.js 2015-07-01 16:56:36 +02:00
JC Brand
114a25a172 Add initial text on writing a converse.js plugin. 2015-06-27 21:49:40 +02:00
JC Brand
b47069b4f6 Add, test and document an API method for setting the user's status.
fixes #367
2015-06-27 21:21:27 +02:00
JC Brand
f73f61e622 Expose is_chatroom attribute on chat boxes returned by the API 2015-06-27 08:44:14 +02:00
JC Brand
14c868f134 With keepalive, don't send out a presence stanza on each page load. 2015-06-27 07:33:16 +02:00
JC Brand
98f6ea8a3f Merge pull request #428 from thierrytiti/chat-with-pending
Enhancement #394 Option to allow chatting with pending contacts
2015-06-22 21:30:24 +02:00
JC Brand
e999f2c6df Merge branch 'i18n-momentjs' of https://github.com/thierrytiti/converse.js into thierrytiti-i18n-momentjs
Conflicts:
	converse.js

Also refactored the code to adhere to the style guide.
2015-06-22 19:54:51 +02:00
JC Brand
56cd540f5d Update changelog after merge. 2015-06-22 18:55:02 +02:00
JC Brand
952b5098cd Small improvements to quickstart text. 2015-06-22 14:47:53 +02:00
JC Brand
868435173f Decouple automatic away and XEP-0352 support.
- Add new config option csi_waiting_time for CSI support.
- The auto_away and auto_xa options won't send out CSI stanzas if csi_waiting_time is 0
- Update docs and add tests for both features.
2015-06-22 00:01:31 +02:00
JC Brand
19065e62b6 Update the style guide. 2015-06-19 17:54:49 +02:00
thierrytiti
479bab2ce4 Enhancement #394 Option to allow chatting with pending contacts 2015-06-18 16:31:30 +02:00
JC Brand
785244f15e Add a styleguide to the documentation.
Also update the contributor guidelines to mention the styleguide.
2015-06-16 00:20:28 +02:00
JC Brand
b7761ea169 Sort changes, add issue numbers and add entry...
mentioning plugins architecture refactoring.
2015-06-04 12:23:11 +02:00
JC Brand
217f3255f7 Sorted the latest changes and combine some. 2015-05-31 14:52:18 +02:00
JC Brand
bf61122805 Avoid trying to retrieve non-existing models. fixes #415 2015-05-31 14:39:28 +02:00
JC Brand
15e5df74e0 Merge branch 'icomoon-xa-icon' of https://github.com/thierrytiti/converse.js into thierrytiti-icomoon-xa-icon 2015-05-29 12:00:14 +02:00
JC Brand
a412bd92c4 Merge branch 'MUC-toggle-Call' of https://github.com/thierrytiti/converse.js into thierrytiti-MUC-toggle-Call 2015-05-29 10:12:40 +02:00
thierrytiti
85915a6498 Add XA status icon
fonts built with icomoon
2015-05-28 16:55:14 +02:00
JC Brand
8e5d481e1c Merge branch 'auto-away' of https://github.com/thierrytiti/converse.js into thierrytiti-auto-away
Conflicts:
	converse.js
2015-05-27 20:01:22 +02:00
thierrytiti
fb589398ad XEP-0199: XMPP Ping
Use modified StropheJS ping plugin (AMD support)
Add Ping functionality
Add Pong handler

Fix to issue #144:
2015-05-27 18:14:58 +02:00
thierrytiti
f75b3a075a I18N: detect language for MomentJS
user language detection in order to format date and time in correct
locale
2015-05-27 14:29:22 +02:00
thierrytiti
24b204e8a4 Offline Pretty Status
add offline as possible case to enable translation
2015-05-26 18:36:17 +02:00
thierrytiti
7366bb709d MUC: missing toggle Call handler and function
the Call button is visible but no action is done
2015-05-26 16:39:06 +02:00
thierrytiti
05cc4d714a CSS: Fonts Path: editable $font-path via sass/variables.scss
Add a variable to build CSS with another path for the fonts
import added in  ``sass/converse.scss`` : Undefined variable $font-path
with ``make css``
2015-05-22 13:57:50 +02:00
JC Brand
1d0ffe34ab Merge branch 'detect_lang' of https://github.com/thierrytiti/converse.js into thierrytiti-detect_lang 2015-05-20 19:20:17 +02:00
thierrytiti
08c94be1b7 CSS Fixes
main div conversejs
- left and width: The last 35px at bottom of the page is not clickable
- right: in some case (e.g. frame in div), the div is over the vertical
scrollbar

room-info:
- wrong placement on hover after information fetched on a room
2015-05-20 17:52:19 +02:00
thierrytiti
a660f853c1 XEP-0352: Client State Indication
XEP-0352 support added to Auto Away Mode
2015-05-20 12:12:08 +02:00
thierrytiti
aebd59825c Changelog
French translation
2015-05-15 19:09:12 +02:00
JC Brand
3cbb93479f Mention json header. updates #395. 2015-05-15 14:46:09 +02:00
JC Brand
68bcc9d0eb Merge pull request #399 from thierrytiti/bugfixes
Bugfix. fullname is null
2015-05-15 14:41:18 +02:00
thierrytiti
7a359562ad Add placeholder for 'Insert a smiley' 2015-05-15 12:01:29 +02:00
thierrytiti
e64c19fc18 Bugfix. fullname is null
wrong callback argument mapping in XmppStatus initialize: fullname is
null
2015-05-15 11:05:26 +02:00
thierrytiti
d631af58a9 Automatic Away Mode
Add functions for changing user presence to ``away`` or ``xa``
2015-05-13 13:51:24 +02:00
thierrytiti
f521532f2f Language Detection
Replace default en language to autodetection if no i18n setting is set.
2015-05-11 17:36:12 +02:00
Guillermo Bonvehí
2e516f347e Updated CHANGES 2015-05-08 14:12:14 -03:00
Guillermo Bonvehí
ef305fff55 Updated CHANGES.rst 2015-05-07 12:59:36 -03:00
JC Brand
c0bec459a0 Bugfix. See below.
Manual login doesn't work when websocket_url is set and not bosh_service_url

It's already a while since we don't include an input for the bosh_service_url in the login panel.
2015-05-06 16:46:37 +02:00
JC Brand
f868917d54 Add an "Edit me on Github" ribbon to the docs 2015-05-02 01:21:25 +02:00
JC Brand
e15ec7d443 Add an initial user manual for converse.js 2015-05-02 00:22:50 +02:00
JC Brand
6088eaf9dc Remove strophe.roster.js and update changelog. 2015-05-01 14:50:27 +02:00
JC Brand
145fd016a3 New release: 0.9.3 2015-05-01 12:29:48 +02:00
JC Brand
e7180f20b1 Add Ukranian translations 2015-05-01 11:16:23 +02:00
pzia
68d111e4b7 bundler is not needed anymore as a debian package 2015-04-26 11:13:35 +02:00
pzia
7e44694d66 Note for debian & ubuntu users 2015-04-26 07:56:22 +02:00
JC Brand
c2be6019f7 Remove type="email" from JID input. 2015-04-25 23:34:52 +02:00
JC Brand
a3da42aeed Update changelog 2015-04-25 22:45:16 +02:00
JC Brand
d6038c7c7b Allow the URL to the sounds to be configurable.
Made some modifications to the code contributed by @thierrytiti and documented
the change.

Fixes #344
2015-04-25 22:41:29 +02:00
JC Brand
1ba42a0d4d Document the change by @thierrytiti 2015-04-25 22:22:16 +02:00
JC Brand
87ff04d806 Some small documentation fixes. 2015-04-24 12:03:22 +02:00
JC Brand
3c71031390 Update changelog for issue #372 2015-04-21 17:34:15 +02:00
JC Brand
6dc355a02a Show the domain when rendering a legacy registration form.
Also updated the changelog with #377
2015-04-21 17:21:26 +02:00
Florian Cargoët
50ef156a6d Add changelog entry for #374 2015-04-17 17:06:17 +02:00
Guillermo Bonvehí
98191056e1 Fix rooms grouping examples in docs 2015-04-16 01:23:13 -03:00
JC Brand
fde0e9c199 Fix RsT errors in docs. 2015-04-09 14:16:29 +02:00
JC Brand
3f884f0d03 Update the changelog after merge from 'anon_login' branch. 2015-04-09 14:13:21 +02:00
JC Brand
6ef2e50387 Merge branch 'anon_login' 2015-04-09 14:09:26 +02:00
JC Brand
995c5fdb44 Make release 0.9.2 2015-04-08 13:41:31 +02:00
JC Brand
b177a6a7a0 Bugfix for incorrect roster height when allow_contact_requests=false.
Also update changelog and fix some linting errors.

Fixes #360
2015-04-08 13:12:29 +02:00
JC Brand
abae9ad6c0 Merge pull request #362 from pzia/master
Adding 'rooms' API
2015-04-08 12:24:49 +02:00
JC Brand
f3101a347f Use the ::-moz-selection because Firefox doesn't know ::selection
fixes #364
2015-04-08 12:20:50 +02:00
pzia
fb8c71b4c7 API documentation for jcbrand/converse.js#355 2015-04-05 08:36:26 +02:00
JC Brand
df0c55ed4d Merge branch 'master' into anon_login 2015-04-04 11:32:22 +02:00
JC Brand
5a488333ec Add a test and changelog entry for #359
updates #359
2015-04-04 11:25:50 +02:00
JC Brand
a2be2567d2 Allow auto_login also with a provided jid and password.
* Update the docs to mention the new ``authentication`` option.
* Update failing tests due to ``prebind`` being replaced with ``authentication``.
* Rename 'manual' value for authentication to 'login' since it's used in both manual and auto cases.
2015-04-02 13:07:59 +02:00
JC Brand
5ec7c67b50 Don't automatically show a chat box when creating it. updates #357
This caused a bug whereby a chat box would open only on chat state
notifications.

Also refactored the chats.open and chats.get methods so that they now reuse the
same map function and so that chats.get can now return any chat box and not
just already open ones.

Updated the tests to properly test this and updated the docs.
2015-04-02 02:01:53 +02:00
JC Brand
14c09c509e Add some consistency to how errors are thrown.
Add tests for contacts.add API method and make it a bit more compact.
Add entry in changelog.

update #354
2015-03-31 15:29:41 +02:00
pzia
6879405e85 Throw exception if no jid or invalid jid. (#354) 2015-03-30 12:02:28 +02:00