JC Brand
66420962f7
Make sure the pong handler is always registered.
...
47e00ae005
2015-05-28 10:59:10 +02:00
JC Brand
47e00ae005
Various bugfixes.
...
- HAS_CSI might be called before features have been received. Instead, set a
flag whenever a feature is received and check for that flag.
- Converse.ping was sending stanzas to the bare jid instead of to the domain.
- The handler that updates the date the last stanza was received must return
true so that it gets called again.
- Only register the Pong handler if Ping is enabled.
- Rename lastMessage to lastStanzaDate to make it more clear.
2015-05-27 21:53:15 +02:00
JC Brand
e0a58efcfa
Linting and code formatting.
...
Also use and add a Strophe namespace for CSI.
2015-05-27 21:49:12 +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
24b204e8a4
Offline Pretty Status
...
add offline as possible case to enable translation
2015-05-26 18:36:17 +02:00
JC Brand
fc1768d12d
Fixes #406 .
...
Call to registerRosterXHandler and registerPresenceHandler on onReconnected give exception.
2015-05-21 17:04:56 +02:00
JC Brand
6afcc0fbe1
Bring lang detect code in line with coding style.
...
Change html files so that we auto-detect the lang now.
2015-05-20 19:31:59 +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
a660f853c1
XEP-0352: Client State Indication
...
XEP-0352 support added to Auto Away Mode
2015-05-20 12:12:08 +02:00
JC Brand
68bcc9d0eb
Merge pull request #399 from thierrytiti/bugfixes
...
Bugfix. fullname is null
2015-05-15 14:41:18 +02:00
JC Brand
96df8dea97
Merge branch 'Placeholder-for-translation' of https://github.com/thierrytiti/converse.js into thierrytiti-Placeholder-for-translation
...
Conflicts:
src/templates/toolbar.html
2015-05-15 14:39:02 +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
JC Brand
cd759a7174
Fixes around using bare jid for roster and chats.
...
- Make sure the bare jid is used as roster contact id.
- Save the resource when creating a new roster contact
- In getWrappedChatBox, get roster item by bare jid
- In getWrappedChatBox, make sure the chat box is created from bare jid
2015-05-15 00:33:23 +02:00
JC Brand
3fc0ef1e70
Remove snippet of code that's not being used.
2015-05-15 00:33:23 +02:00
thierrytiti
e35c5a4fa3
Indentation
2015-05-14 13:55:39 +02:00
thierrytiti
be102de031
Bugfix if auto_away=0 and auto_xa>0
...
In this case, it will force changing presence even if the user
specificly set another status.
2015-05-13 16:25:26 +02:00
thierrytiti
6034932523
Update converse.js
2015-05-13 13:57:22 +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í
70191eac00
Added login-panel placeholder and roster-item Name translations
...
This will allow to translate 'user@server' and 'password' in the login
screen and also in the roster-item tooltip, there's 'Name:' which can
now be translated
2015-05-08 14:08:09 -03:00
Guillermo Bonvehí
71ea60e44a
Fixed an error that appears when unload event is triggered
...
This happens when you load a page with converse and do not login to
the chat. It can be tested in converse.org preserving logs while
navigating to another page.
Inside clearSession there's a call to roster which is not initalized
and also another one to controlbox.save which is not set so it fails
with an url error during sync.
2015-05-07 12:47:32 -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
9f5f5da7ed
Created method insertIntoPage
...
Put the code that inserts a chat box into the page in it's own method,
so that it can be overridden from a plugin.
2015-05-03 17:43:22 +02:00
JC Brand
d6a1dee2d2
Rename the placeholder for contact adding
...
to make it clearer what a JID should look like.
2015-05-02 00:21:11 +02:00
JC Brand
aa3de742c0
Merge branch 'master' into roster_refactor
2015-04-25 23:06:59 +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
thierrytiti
310d2b77f3
typo
2015-04-25 22:26:10 +02:00
thierrytiti
7ec44d56d5
add sounds path
2015-04-25 22:25:59 +02:00
thierrytiti
addd2c2ac3
Bug in parsing search result
2015-04-25 22:20:15 +02:00
JC Brand
96e8a285b7
Merge branch 'master' into roster_refactor
2015-04-21 17:36:13 +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
JC Brand
848c13eb62
Merge branch 'master' into roster_refactor
...
Conflicts:
dev.html
2015-04-21 16:51:15 +02:00
Guillermo Bonvehí
8934043d79
Submit registration form as xform or legacy
...
Support to send the registration form as legacy or xform, we
use the same variable form_type that was already being used when
calling render
Added submission tests
2015-04-21 11:05:03 -03:00
Florian Cargoët
8b695be4d7
Fix group visibility on page load.
...
Close #374
2015-04-17 17:06:16 +02:00
Florian Cargoët
63e3794ba7
Fixes #372
2015-04-17 16:24:02 +02:00
JC Brand
292d4a1bc9
Ignore messages sent to a different resource
2015-04-16 09:37:46 +02:00
JC Brand
f7a077a911
Merge branch 'master' into roster_refactor
...
Conflicts:
converse.js
2015-04-15 22:08:19 +02:00
JC Brand
36d9dbdea5
Use Strophe for managing namespaces.
2015-04-15 22:06:23 +02:00
JC Brand
34e2cfc191
Merge branch 'master' into roster_refactor
2015-04-15 21:52:14 +02:00
JC Brand
1b6e67ae73
Don't call updateVCard if use_vcards is false.
2015-04-15 21:20:19 +02:00
JC Brand
3451fcf01e
Only set contact status offline if there aren't any other resources available.
2015-04-13 17:02:14 +02:00
JC Brand
f399c5f681
Add more protocol tests.
...
* Unsubscribing
* Incoming subscription requests.
Noticed that it's not necessary to call "unauthorize" when setting
subscription="remove".
2015-04-10 16:30:04 +02:00
JC Brand
e6f5b95da7
Fix tests by allowing removeFromRoster to be spyable.
2015-04-10 13:04:00 +02:00
JC Brand
1ce328783c
Also add tests for case where contact declines request.
...
Did a bit of renaming and fixed a bug in updateContact where a user wasn't
created when it should have been.
2015-04-10 13:01:31 +02:00
JC Brand
838ad13605
Merge branch 'master' into roster_refactor
...
Conflicts:
converse.js
2015-04-10 01:30:02 +02:00
JC Brand
6ef2e50387
Merge branch 'anon_login'
2015-04-09 14:09:26 +02:00
JC Brand
2e11f99d82
Bugfix. Also make sure to remove previous from/to class
2015-04-09 10:35:12 +02:00
JC Brand
c05d17ca25
Expand the protocol tests.
...
* Fixed a bug in the process which prevented "to" contacts from being shown as
existing.
* Add "to" or "both" as classes on the contacts to indicate their
subscription status.
* Delete roster handlers in tearDown method to avoid them being registered
multiple times.
2015-04-08 19:51:33 +02:00