Commit Graph

196 Commits

Author SHA1 Message Date
JC Brand
e389913444 Better service discovery support
Features are saved to localStorage so that service discovery doesn't have to
happen during every request.
2013-04-26 14:30:14 +02:00
JC Brand
62a2e307a5 Add initial service discovery (XEP 30) support.
- Still needs caching and optimisation
2013-04-25 23:53:33 +02:00
JC Brand
b36d2f18e5 Add support for the BOSH bind URL as a setting parameter 2013-04-25 00:21:54 +02:00
JC Brand
27dec86caa Clear connect form fields so that it cannot be resubmitted 2013-04-20 23:57:33 +02:00
JC Brand
d937d32d3b Fix quirks with the add-contact dropdown 2013-04-20 22:55:22 +02:00
JC Brand
6de997681b Fetch the user's vcard when you subscribe to them 2013-04-20 15:27:48 +02:00
JC Brand
cb2dab38fd Fetch the user's vcard when you subscribe to them 2013-04-20 15:21:23 +02:00
JC Brand
98bbb79176 Fixed auth.
It depended on triggering events for which we've removed the handlers
2013-04-20 11:51:01 +02:00
JC Brand
58241cbb74 Make converse.js more modular
- Removed the $(document).ready handler. Instead, converse.initialize must be
  called manually together with settings data.
- As a result the Plone specific event listeners are now also gone.
- Update tests and index.html to deal wit these changes
2013-04-20 11:32:54 +02:00
JC Brand
1cae33b06b Globally rename xmppchat to converse 2013-04-20 10:41:10 +02:00
JC Brand
71f4cdb931 Initial work towards decoupling contact adding
New conf variable in converse.js to indicate how contacts are added (either via
XHR or directly).
2013-04-20 00:38:54 +02:00
JC Brand
a306e1a716 Clear the chatroom input when form was submitted 2013-04-19 22:10:52 +02:00
JC Brand
d394ad7ff2 Update index.html with Demo section 2013-04-19 00:09:04 +02:00
JC Brand
6aed43818c Add XMPP Status Widget tests 2013-04-18 22:13:28 +02:00
JC Brand
4faf7f2a02 Style tweaks
Truncate pending contacts with too long names
Position accept/decline buttons below pending contact's name
2013-04-17 22:43:17 +02:00
JC Brand
7903c03651 Add a hide method and call that instead
Inside this method we can then check if animations are turned on.
2013-04-17 00:08:01 +02:00
JC Brand
a3b92ac321 Call destroy on rejected contact
Rather than calling remove and triggering a custom event
2013-04-15 09:57:01 +02:00
JC Brand
c13bd1e719 Make animations conditional
We don't want them during testing
2013-04-14 03:06:05 +02:00
JC Brand
d66cf7c2a9 Differentiate between initialize and onConnected 2013-04-14 01:17:51 +02:00
JC Brand
a6fd9450a9 Rename init to initialize
Also make sure to hash all localStorage keys
2013-04-14 01:08:24 +02:00
JC Brand
f2ae33d47c Bugfix in show and moved setup code to init method 2013-04-14 00:47:18 +02:00
JC Brand
d2d10f0661 Bugfix.
Controlbox always appears when page loads
2013-04-12 21:56:24 +02:00
JC Brand
ebfd092e49 Bugfix.
Controlbox didn't auto-appear when a new user made a subscription request.
2013-04-12 21:01:04 +02:00
JC Brand
52bbe024cb Bugfix.
Differentiate more clearly between presence type and the show element
2013-04-12 20:29:37 +02:00
JC Brand
c02dba7682 message time bugfix 2013-04-01 23:42:51 +02:00
JC Brand
09c614816c Make the user search form similar to the status dropdown 2013-04-01 20:50:25 +02:00
JC Brand
54554e94ed Fix closing of controlbox without a connection being present 2013-04-01 19:53:39 +02:00
JC Brand
aa09ea58cd Give more detailed feedback when connecting 2013-04-01 19:48:37 +02:00
JC Brand
2b78460e82 Bugfix, don't call create if we don't yet have a connection 2013-03-28 11:38:16 +02:00
JC Brand
9533f4635f Bugfix. Set up the RosterView after the Controlbox
Also, don't save subscription requesting contacts to cache.
2013-03-28 08:48:00 +02:00
JC Brand
6f5ff13055 Don't check the cache in getVCard since we don't call it so often anymore 2013-03-28 07:35:38 +02:00
JC Brand
fe8ed1282c Better handling of user avatar. Don't create canvas el if there's no avatar.
Also, don't fetch vCards in rosterHandler. This could be very expensive for
large rosters, instead we'll fetch them when a user comes online.
2013-03-28 07:17:05 +02:00
JC Brand
49b4633c3f Send nick along with subscription request.
Additionally:
It's not feasible to get the current user's fullname from a vCard all the time,
so we still get it from the DOM for now.
2013-03-28 07:03:16 +02:00
JC Brand
cd5615f79f initStatus is still usefull when we have undefined initial status.
Also set bare_jid, domain and muc_domain on the xmppchat obj and not the
connection obj.
2013-03-28 06:23:08 +02:00
JC Brand
e41fddee0f Refactored XMPPStatus a bit to remove initStatus and to always show status_message 2013-03-27 20:41:19 +02:00
JC Brand
2500d98ebe Use backbone.localStorage for XMPPStatus model.
This was the last thing still using burry.js, so we now have one less
dependency :)
2013-03-27 20:18:00 +02:00
JC Brand
f6e299cc82 Bugfix. getVCard called errback by mistake. 2013-03-27 19:50:35 +02:00
JC Brand
102218b019 Compatibility changes for backbone 1.0 2013-03-27 19:33:53 +02:00
JC Brand
07a65f5b6a Also show different days on chatrooms.
- Use a template to show the day's date.
- Use time element for the date and datetime attr
2013-03-27 17:07:24 +02:00
JC Brand
acbcf3fd2a Indicate on the chatbox when messages span different days. 2013-03-27 14:13:42 +02:00
JC Brand
43434043ab Store time as iso8601 strings on messages 2013-03-27 13:55:18 +02:00
JC Brand
cdcbe41d59 Refactored rosterChanged method.
Roster changes are listened to on the rosterview and the applicable chatbox is
updated.

Custom status messages are now remembered upon page load.
2013-03-25 13:08:27 +02:00
JC Brand
7046656370 Bugfix. Controlbox showed automatically upon page load 2013-03-25 12:00:24 +02:00
JC Brand
1c3a5a94cc Don't store chatroom messages, the XMPP server (ejabberd) does this already. 2013-03-25 10:44:13 +02:00
JC Brand
e964e97285 Properly clear message counter upon page reload 2013-03-24 21:45:55 +02:00
JC Brand
744c575a6a Bugfix. Message counter was not replacing previous count 2013-03-24 21:31:56 +02:00
JC Brand
a4b69ded7d Save to localStorage messages sent in chatroom.
Also removed the need for the appendMessage method.
2013-03-24 21:26:21 +02:00
JC Brand
b49f21558c Remove closeChatRoom and reuse closeChat on ChatBoxView 2013-03-24 17:54:29 +02:00
JC Brand
2d08916ce7 Remove the keyPressed method from ChatRoomView and reuse the one on ChatBoxView 2013-03-24 17:49:42 +02:00
JC Brand
337a3c2bdb Remove ChatRoom model and instead re-use normal ChatBox model. 2013-03-24 17:44:47 +02:00