Commit Graph

1048 Commits

Author SHA1 Message Date
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
JC Brand
c647783281 Make avatar round and center/resize image properly. 2015-10-30 17:10:09 +00:00
JC Brand
e1f41777a4 Updated button styles and update buttons all over the place. 2015-10-29 09:57:52 +00:00
JC Brand
7ad3c385aa Rename chat-message-* class to chat-msg-* 2015-10-28 08:52:19 +00:00
JC Brand
ca2b40f79c More css refactoring. 2015-10-28 08:49:28 +00:00
JC Brand
37c6925e9c More refactoring of css/sass.
- All chats (boxes and rooms) should now have .chatbox class (for base styles)
- Move specific stuff to new sass files (fonts, chatbox, normalize)
2015-10-27 10:22:19 +00:00
JC Brand
e835a25184 Add jshint checking and fix errors. 2015-10-25 17:55:18 +00:00
JC Brand
ff2910b9ce Fix CSS and horizontal dragresize for chat rooms.
- Rename .chat-body to .chatroom-body
- Upate SASS for chat rooms
- Hide the room occupants view by toggling the class "hidden"
- The chatroom chat area and occupants list are now shown as table cells.
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
69dc80f60c Bugfixes around resizing for chat rooms.
- Make sure initDragResize gets called (in .show())
- Handle case (which shouldn't happen and is hopefully now fixed) when min_height is not set.
2015-10-24 20:46:58 +00:00
JC Brand
fa49fbeed5 Remove 'Connecting' message if login fails. 2015-10-24 20:46:58 +00:00
JC Brand
969c94d473 Honor the min-width and min-height CSS properties...
when it comes to chat box resizing.
2015-10-24 20:46:58 +00:00
JC Brand
9c16711581 Add polyfill.js with 2 polyfills. 2015-10-24 20:46:58 +00:00
JC Brand
74aa6021f4 Enable diagonal and horizontal drag-resizing.
Only leftward resizing is allowed since there's no space for boxes to expand on the right.
Text area of chat boxes don't yet resize properly.
Didn't test at all on chat rooms.
2015-10-24 20:46:57 +00:00
Władysław Koszałko
6e6f852a9b Typo caused [object Object] in room info 2015-10-22 12:28:00 +02:00
Javier Mellado
3142ebbb6b Force type comparison and documentation updates 2015-10-20 10:57:21 +01:00
Javier Mellado
4fb99c0c2a Fix roster push when new contact is pushed from server and emit rosterPush event 2015-10-19 14:52:49 +01: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
eeb8210ff6 Fixes #496. Bind converse to this in callback. 2015-10-07 08:07:05 +00:00
JC Brand
795d5fb6fd Merge branch 'master' of github.com:jcbrand/converse.js 2015-10-07 08:04:28 +00:00
JC Brand
0d9d632f40 Bugfix for #493 2015-09-30 21:04:37 +02:00
JC Brand
414265299a Drop dragresize-tm class. Don't set height if not available 2015-09-24 13:55:48 +00:00
JC Brand
a9c2b7d99f Remove the default_box_size setting.
Instead, get the height from how it's rendered in the browser (i.e. from CSS)
2015-09-24 13:52:35 +00:00
JC Brand
f3e2de9945 Document allow_dragresize option. 2015-09-22 12:40:08 +00:00
Christoph
12da915ef8 Fix [object Object] being shown as status when other presence stanza with custom 'status' is received from other resource 2015-09-09 13:19:26 +02:00
Christoph
19ef0f8c71 Fix #461: MUC working with spaces etc. in room names 2015-09-03 16:19:06 +02:00
Christoph
73fa397c77 Fix no messages being shown in chat (first_msg_date is null, code checked for undefined only)
Maybe related to message archive feature or different jQuery version
2015-09-01 13:41:16 +02:00
JC Brand
1390e1a3b0 3 changes
- updated version of moment.js
- remove unused variables in converse.js
- fix broken link in index.html
2015-08-24 17:01:55 +02:00
JC Brand
2cc76c3af7 Type attribute on data forms is mandatory. updates #306
See here:
https://github.com/strophe/strophejs-plugins/pull/65
2015-07-29 14:35:07 +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
8e7dba9b74 MAM-related bugfixes.
- Don't show another spinner if one already exists.
- last_msg_date's selector was matching chat state notifications.
- Remove the spinner when errback gets called.

updates #306
2015-07-21 21:21:33 +02:00
JC Brand
44abbeadf3 Better support for infinite scrolling with MAM for MUC.
updates #306
2015-07-21 20:42:14 +02:00
JC Brand
5eea22f245 More work on showing archived chatroom messages.
updates #306
2015-07-21 20:10:31 +02:00
JC Brand
404ab96609 Bugfix for groupchat archive queries.
Groupchat queries should have a "to" parameter on the IQ stanza and don't use
the "with" query option.

updates #306
2015-07-21 11:38:44 +02:00
JC Brand
e03db127cf Add a new configuration setting. muc_history_max_stanzas 2015-07-21 11:36:07 +02:00
JC Brand
268c4b9389 Add support for receiving messages in random order.
Needed for ejabberd support.

updates #306
2015-07-20 20:07:29 +02:00
JC Brand
8d84d5ed03 Bugfix. Duplicate messages slipped through if they were forwarded. 2015-07-20 19:42:36 +02:00
JC Brand
388012f2cd Workaround for ejabberd...
which doesn't support getting the item count of archived messages.
See here: https://xmpp.org/extensions/xep-0059.html#count

So we don't first fetch a count of archived messages instead try to fetch the
messages themselves immediately.

updates #306
2015-07-20 09:57:28 +02:00
JC Brand
79fba8a6c6 Bugfix. Didn't call debounced method.
Causing the chat box to not appear when a new message is received.
2015-07-20 09:54:56 +02:00
JC Brand
1675109e71 Two changes, see below.
- Don't play a sound notification for forwarded messages.
- Bugfix. Return when no chat box returned.
2015-07-19 23:54:45 +02:00
JC Brand
7ff38896e9 Refactored the code showing messages and day indicators.
Fixes the issue where a topmost day indicator wasn't shown when doing infinite
scrolling upwards.
2015-07-19 23:23:02 +02:00
JC Brand
e8fba4a7d0 Refactored showNewDay to indicate day changes between messages.
updates #306
2015-07-19 13:43:26 +02:00
JC Brand
06a6d6c4d0 Refactor out code for showing a new day in the chat box. 2015-07-19 12:22:10 +02:00
JC Brand
3ba12580c4 Store the isodate on chat messages in the DOM.
This will be useful later when we want to better place messages in the right
order.
2015-07-19 12:21:49 +02:00
JC Brand
6bd0037cbb Save the chat content area on the view.
To reduce $.find queries.
2015-07-19 12:08:43 +02:00
JC Brand
1a7a5e8054 Add a spinner when loading during infinite scrolling.
updates #306
2015-07-18 21:39:49 +02:00
JC Brand
ec02d34af9 Improvement. Don't lose your place with infinite upscroll.
updates #306
2015-07-18 09:20:13 +02:00
JC Brand
796582d96f Refactoring: got rid of the maybeFetchArchivedMessages method.
updates #306
2015-07-18 00:08:21 +02:00
JC Brand
3b2b4ed6c7 Some improvements to scrolling. 2015-07-17 23:46:02 +02:00
JC Brand
36306c7418 Improve support for infinite scrolling of arhived messages.
updates #306
2015-07-17 23:13:43 +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
10e53468fb Initial work on adding infinite scrolling for archived messages.
updates #306
2015-07-17 20:11:13 +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
8625d1daba Add initial support for fetching and showing archived messages.
In the proces I added converse.chatboxes.getChatBox which allowed me to
remove the getWrappedChatBox method.
2015-07-17 16:49:58 +02:00
JC Brand
d992efc34b Optimization: only query for MAM prefs when necessary
updates #306
2015-07-17 16:43:20 +02:00
JC Brand
393dd6150d Use the Strophe.NS.XFORM constant 2015-07-17 16:42:00 +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
1a9771c717 Test code which receives archived messages and calls callback
updates #306
2015-07-12 23:58:07 +02:00
JC Brand
dca0472e80 For archive.query, call callback once after receiving all messages.
updates #306
2015-07-12 16:29:04 +02:00
JC Brand
9abbd1e8f0 Allow a Strophe.RSM object to be passed in to archive.query.
updates #306
2015-07-11 14:55:02 +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
a0d344c7c4 Add better support for the results from a MAM query.
updates #306
2015-07-11 13:40:02 +02:00
JC Brand
7437cf2b42 Bugfix. Closured converse is not defined in utils. 2015-07-11 13:39:52 +02:00
JC Brand
1261a2525d Use Strophe.RSM for result set management. 2015-07-11 12:03:20 +02:00
JC Brand
b77d76b364 Started adding the API for querying archived messages. 2015-07-11 06:36: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
2442eb74f4 Use Strophe.NS and only advertise enabled features. 2015-07-10 15:07:32 +02:00
JC Brand
5a5d3757ea Move the addEmoticons jQuery plugin to utils.js 2015-07-10 15:02:48 +02:00
JC Brand
3d7f5eda8e Some explanatory comments 2015-07-10 10:35:33 +02:00
JC Brand
eae706690f Renamed some methods and added docstrings, for clarity. 2015-07-04 10:24:00 +02:00
JC Brand
6736a5bce4 Test carbons of user's own sent messages.
Found and fixed a bug in the process.
2015-07-03 11:55:13 +02:00
JC Brand
0afa7ec188 Don't carbon copy OTR messages. 2015-07-03 11:41:14 +02:00
JC Brand
c2ccb2c693 New test and fixes to the message handler. updates #431 2015-07-02 11:23:52 +02:00
JC Brand
7703b9b33c Bugfix. Check if CSI is enabeld before sending. 2015-07-02 11:23:19 +02:00
JC Brand
b310d8a143 Add more logging to try and debug 431 2015-07-02 10:41:11 +02:00
JC Brand
722c172fbe Ensure that node and domain parts of the user's JID are lower case.
updates #234
updates #431
2015-07-01 19:44:14 +02:00
JC Brand
734d5b65ba Bugfix. Didn't add "bind". 2015-07-01 19:44:14 +02:00
JC Brand
d8c29c7e3f Make sure text is logged instead of XML.
Otherwise the log output is truncated when people copy paste from the console
(for bug reports).

updates #431
2015-06-29 11:57:37 +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
0426f47941 Send out less active/inactive chat state messages.
Don't send out 'active' and 'inactive' chat state messages on blur and focus of chat box.
These events happen too often, causing lots of unnecessary messages.
2015-06-27 07:35:11 +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
9f7174dedc Replace $.proxy calls with bind (which is polyfilled in strophe.js) 2015-06-27 06:36:25 +02:00
JC Brand
c745e1ebff Cherry-pick only those languages from Moment which we support in converse.js 2015-06-22 22:20:02 +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
0c67d2117b Bugfix. Just return locale string id. 2015-06-22 20:31:51 +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
ed3be3730c Merge branch 'master' of github.com:emmanuel-florent/converse.js into emmflorent 2015-06-22 18:51:12 +02:00
JC Brand
21a3b44050 Don't send CSI or auto_away/xa stanzas when not auth'd
This is to deal with reconnects. Originally @thierrytiti checked for
`connection.connected` but I think that might still pose a problem when
reconnecting is in process and the user is not yet authenticated again.

This makes pull request #426 unnecessary.
2015-06-22 18:39:12 +02:00