Commit Graph

228 Commits

Author SHA1 Message Date
JC Brand
feb3695ebe Tweak the error message styling 2013-05-14 22:13:05 +02:00
JC Brand
946bb7730b Fix tests 2013-05-14 09:43:49 +02:00
JC Brand
8467dc7016 Add contact even if vcard fetching didn't work.
Also fixed a bug. We DO have to listen to the 'remove' event for roster items.
2013-05-13 23:38:37 +02:00
JC Brand
c1423928ab It's now possible to enter password protected chatrooms 2013-05-13 23:17:16 +02:00
JC Brand
631c252e83 Next task is to render password form for restricted rooms
For now just make sure the user is informed that pw is required.
2013-05-13 09:22:45 +02:00
JC Brand
01336fefd9 Defer rendering of the messages area and roster
until after we are sure that the user has actually entered the room
2013-05-13 09:10:47 +02:00
JC Brand
5f0a90d00e Make sure that checkboxes are ticked in chat config 2013-05-12 15:17:58 +02:00
JC Brand
0e1386cb60 Room configuration settings can now be saved. 2013-05-12 13:53:37 +02:00
JC Brand
b470d2a571 More work towards making chatroom configurable
Added a form with inputs for the configuration options (not yet usable)
2013-05-11 18:14:06 +02:00
JC Brand
0914887b4f More work towards letting users configure chatrooms
Add a configure button on chatrooms when the user is the chatroom owner.
2013-05-11 16:58:08 +02:00
JC Brand
ef38fd0973 Add initial support for configuring chatrooms.
For now we just create an instant chatroom, but eventually we must provide a
way through the UI in which the user can request to configure the room.
2013-05-11 16:19:42 +02:00
JC Brand
fc06d46baa Give visual indication/tooltips about MUC user roles 2013-05-11 14:19:07 +02:00
JC Brand
7c1a9242d5 Add logic to parse error messages when trying to enter a room 2013-05-11 09:59:32 +02:00
JC Brand
c392a4e598 Show all available room features
when clicking the info icon next to a room's name
2013-05-11 08:50:01 +02:00
JC Brand
7142dc58c7 Don't call disco#info for all chatrooms
It's way to inefficient when there are multiple chatrooms. Instead, I added an
info icon that can be clicked and which will fetch and display additional info
on the chatroom.
2013-05-10 21:05:58 +02:00
JC Brand
d1618300a3 Make sure fullname is saved to localStorage
Also make sure that logged in user's fullname is fetched from xmppstatus obj.
2013-05-10 10:58:25 +02:00
JC Brand
1d9dda374b Fetch own vcard on startup 2013-05-10 10:00:25 +02:00
JC Brand
93a80e0db6 Add semi-colons 2013-05-10 08:47:25 +02:00
JC Brand
19cf4c753b Pad spinner which replaces login button 2013-05-09 22:38:17 +02:00
JC Brand
472280ae5d Add some padding around the login submit button 2013-05-09 19:01:34 +02:00
JC Brand
97c978bcfc Indicate when chatrooms are password protected 2013-05-09 18:34:15 +02:00
JC Brand
b3ed43c450 Don't fetch rooms on roster or when leaving a room
Inefficient, causes way too much traffic and takes very long
2013-05-09 17:07:52 +02:00
JC Brand
df7f1ccf2c Use feature discovery on chatrooms 2013-05-09 15:39:27 +02:00
JC Brand
07664ed350 Also inform if no rooms were found 2013-05-09 09:22:54 +02:00
JC Brand
5b2af5b03d Add a button to manually fetch rooms from server.
Also show a spinner when logging in (to disable resubmitting login form)
and when refreshing the available chatrooms.
2013-05-09 00:09:24 +02:00
JC Brand
da483d63f3 Optimize showing of chatrooms
- by using documentFragment
2013-05-08 22:31:33 +02:00
witek
6078ab5924 fixed message counter to be windowState aware. 2013-05-08 16:27:47 +02:00
JC Brand
308b4c6bd6 Show error messages in red 2013-05-08 14:25:21 +02:00
JC Brand
4b69a89090 Properly proxy callbacks 2013-05-08 12:16:11 +02:00
JC Brand
c07c0f5633 Communicate status code information to chatroom users.
Also bugfix that showed the wrong time for delayed messages.
2013-04-30 10:01:19 +02:00
JC Brand
dd1d56b9d8 Enable users to specify the XMPP server for chatrooms 2013-04-30 07:36:16 +02:00
JC Brand
7a824ac4f4 Bugfix in topic setting for chatrooms 2013-04-29 23:12:10 +02:00
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