JC Brand
00484280c2
core: Catch and log errors that might happen during initStatus
2017-07-21 15:09:50 +02:00
JC Brand
6ac01ed2ac
Bookmark icon shown in open rooms list when allow_bookmarks
set to false
2017-07-19 09:28:44 +02:00
JC Brand
0edb38e2c6
Fixes #896 Consistently use XMPP username
in user facing text
2017-07-19 09:17:46 +02:00
JC Brand
713e49b095
Fix failing tests
2017-07-19 09:14:02 +02:00
JC Brand
f84790e68c
muc: Show JID (instead of only server) in room info
...
Also made some styling changes and tweaked the room head to better
differentiate between the Name and JID of a room.
2017-07-19 08:30:04 +02:00
JC Brand
c012c2c1af
Don't show duplicate sent groupchat messages in Slack chat rooms
2017-07-19 08:28:51 +02:00
JC Brand
d9a61746a2
Bugfix. Server disco features forgotten between logouts.
2017-07-18 10:46:46 +02:00
JC Brand
6fea88fcc3
Add JID validation and error messages to the add contact
form
2017-07-17 22:08:15 +02:00
JC Brand
5c487d2faf
Refactored the slide methods
...
so that slider does not have fixed height after being opened and can therefore
shrink or expand appropriately when its children change.
2017-07-17 21:53:33 +02:00
JC Brand
d23046329e
Fixed a bug in slideOut
where offsetHeight
changes after sliding out
...
As a result we can again show emoji categories and skin tones on the same line
(if there is enough space).
2017-07-17 18:09:14 +02:00
JC Brand
496d2521fc
muc: Show room domain in header.
...
Also make sure room name gets saved once it's been updated.
2017-07-17 18:07:31 +02:00
JC Brand
e4ebcc8f71
emoji: various css and html changes to improve ui/ux in converse and inverse
2017-07-16 15:04:54 +02:00
JC Brand
ffdd4e25f3
emoji: remember category and skin tone selection
2017-07-16 14:12:17 +02:00
JC Brand
8c4f6ffe03
emoji: Listen for clicks on a larger surface area
2017-07-16 13:41:01 +02:00
JC Brand
1dfdba0db9
muc: Ignore non-MUC (like error) messages
...
Noticed that Slack sends error messages back in response to chat state
notifications.
We're not doing anything with them currently and they bloat the sessionStorage
2017-07-16 12:51:20 +02:00
JC Brand
e3d2abf0ec
emoji: Make sure emojis are also rendered for ascii emoticons
2017-07-16 12:50:59 +02:00
JC Brand
49f26d8e49
emoji: Allow the assets path of Emojione to be overridden
2017-07-16 12:30:40 +02:00
JC Brand
f8c6467feb
emoji: Show only one skin-tone at a time (including the "neutral" one)
2017-07-16 12:29:09 +02:00
JC Brand
3ebe41384d
emoji: Remember scroll position when rerendering the emoji picker
2017-07-16 12:29:09 +02:00
JC Brand
9a5f2fce61
emoji: Add a skin-tone picker to the emoji toolbar
2017-07-16 12:29:09 +02:00
JC Brand
22113a8ccb
Expand test for rendering of images (and fix accordingly)
2017-07-16 12:29:08 +02:00
JC Brand
12510a9689
emoji: Fix rendering of emojione images
2017-07-16 12:29:05 +02:00
JC Brand
972c31be1d
emoji: Allow the option of using emojione (now that we sanitize)
2017-07-16 12:29:02 +02:00
JC Brand
284e884766
Add js-xss
and use it to sanitize message HTML
2017-07-15 19:15:48 +02:00
JC Brand
b85b29bb20
vcard: Bugfix. 'FN' may not be defined.
2017-07-15 17:26:59 +02:00
JC Brand
e6492e286d
Don't specify method
2017-07-15 16:00:36 +02:00
JC Brand
0958915021
Refactor slightly to improve readability
2017-07-15 16:00:18 +02:00
JC Brand
f69e39dc8b
Reuse code for submitting a message
2017-07-15 15:58:11 +02:00
JC Brand
cf1e8f2921
Fix failing test for emoji picker
2017-07-15 15:16:38 +02:00
JC Brand
4ea50de927
Use emoji
instead of emoticon
2017-07-15 15:14:47 +02:00
JC Brand
a65b319d57
Improve styling for emoji-picker in the converse theme
2017-07-15 11:51:15 +02:00
JC Brand
b2a118ca9e
Refactor slide methods in utils and use them for toolbar menus
2017-07-15 11:03:22 +02:00
JC Brand
ce2548c838
Remove the visible_toolbar_buttons.emoticons
config option
...
in favor of `visible_toolbar_buttons.emoji`.
2017-07-15 08:17:41 +02:00
JC Brand
3fabe88970
Updated package-lock. Fix tests.
2017-07-15 07:58:57 +02:00
JC Brand
67578c9747
Merge branch 'master' into emoji
2017-07-15 07:16:37 +02:00
JC Brand
bd38f0d634
Update the website to not use jquery.easing
...
It will now also no longer be included in the full bundle.
2017-07-14 23:01:09 +02:00
JC Brand
914f739dbc
Add slideUp
and slideDown
methods
...
And use them in the roomslist plugin instead of the jQuery methods.
ALso removed the jQuery dependency in roomslist.
2017-07-14 10:08:42 +02:00
JC Brand
76cc9642e0
roomslist: replace jQuery methods with native
2017-07-13 23:55:40 +02:00
JC Brand
2fe77b8a5c
Don't escape room name.
...
It's being rendered as a string literal.
2017-07-13 23:55:16 +02:00
JC Brand
dc7249f07d
roomslist: Room name wasn't being shown in confirm
dialog
2017-07-13 23:54:06 +02:00
JC Brand
27760a7d51
vcard: remove jQuery as dependency
2017-07-13 23:27:24 +02:00
JC Brand
1487e63988
Add build scripts for esnext version
2017-07-13 12:25:03 +02:00
JC Brand
019008c5af
Merge branch '3.1.x'
2017-07-12 23:33:35 +02:00
JC Brand
7721275962
New release v3.1.1
2017-07-12 22:51:56 +02:00
JC Brand
647395a504
Use a patched version of awesomplete...
...
which doesn't render suggestions as HTML.
See https://github.com/LeaVerou/awesomplete/pull/17082
2017-07-12 22:46:24 +02:00
JC Brand
397927b189
Fix broken tests and update changelog
2017-07-12 09:58:14 +02:00
JC Brand
6af029048d
Replace $.Deferred with ES2015 promises
2017-07-11 17:21:13 +02:00
JC Brand
e75b6ad694
Recreate promises whenever initialize
is called.
2017-07-11 17:05:01 +02:00
JC Brand
6ef0536e31
Some work on using es6 promises
2017-07-10 21:14:48 +02:00
JC Brand
9a9eae3fcf
Use esnext to auto-generate es2015 syntax
2017-07-10 17:46:22 +02:00
JC Brand
9333415640
Builds are now created from babel transpiled code
...
Except for the esnext builds, which use the original code.
Fixes #866
2017-07-10 16:25:21 +02:00
JC Brand
40e7ee1ae6
Initial stab at using ES2015
...
Mostly replaced ``var`` with ``let`` and ``const``.
Also added a few arrow functions.
2017-07-10 12:49:20 +02:00
JC Brand
e1b745b71f
Initial steps to adding babel.
2017-07-10 12:44:29 +02:00
JC Brand
2d89589b54
bookmarks: clear the fetched_flag
upon logout
2017-07-10 10:43:37 +02:00
JC Brand
8c1c665e2e
core: Some more logging improvements.
2017-07-10 10:43:13 +02:00
JC Brand
c422237668
New release: 3.1.0
2017-07-05 10:07:28 +00:00
JC Brand
6e67bdfdb5
roomslist: Less confusing code by using promises
2017-07-05 11:40:54 +02:00
JC Brand
5ab1693136
logging: Add deprecation warning for updateSettings
...
and also use the Strophe.LogLevel levels for logging in general.
2017-07-05 11:33:55 +02:00
JC Brand
f81a94baf1
Move updateSettings
to the private API.
...
Also add an API method for exposing new promises.
Update the plugin and API documentation, specifically concerning the above
changes.
2017-07-05 11:03:13 +02:00
JC Brand
857c5ccdb3
Reset bookmarks when logging out
2017-07-03 09:57:11 +02:00
JC Brand
ea4c490283
bookmarks: bugfix, deferred
might be null
2017-06-27 13:02:40 +02:00
JC Brand
c11a1b40e8
muc: bugfix, presence referring to current user doesn't have a jid attr
2017-06-27 12:56:50 +02:00
JC Brand
ea04b11724
Try to fix what appears to be a timing bug
2017-06-27 09:29:46 +02:00
JC Brand
5d99076f62
Filter out some emojis which don't have native support yet
2017-06-24 12:36:02 +02:00
JC Brand
b4ff38dba7
Pad the emoji categories
2017-06-24 12:27:59 +02:00
JC Brand
4e467044d3
Some usability fixes around the toolbar and emojis
2017-06-24 11:34:01 +02:00
JC Brand
70f56b31f4
Merge branch 'master' into emoji
2017-06-24 11:04:19 +02:00
JC Brand
095e7add86
mam: Upgrade MAM support to version 2
2017-06-23 22:58:47 +02:00
JC Brand
66fd9a9f28
muc: Fix: after reconnecting, already open room didn't receive new messages
2017-06-23 20:19:38 +02:00
JC Brand
36e078c9f6
utils: Rename saveWithFallback
to safeSave
2017-06-23 20:17:58 +02:00
JC Brand
86c20ce2a7
muc: When exiting, don't wait for confirmation before cleaning up
...
During logout we don't have enough time.
2017-06-23 18:22:19 +02:00
JC Brand
53643ab541
core: Close chats when logging out, before disconnecting
...
Otherwise rooms cannot be exited properly.
Also, no need to call `_tearDown` in `logOut` when `connection.disconnect` gets
called since it will get called afterwards in the handler.
2017-06-23 18:21:00 +02:00
JC Brand
3e8e770517
chatview: use utils.isPersistableModel
2017-06-23 18:19:20 +02:00
JC Brand
3310df88c0
Regenerate build files. Some small fixes to inverse
2017-06-21 22:26:00 +02:00
JC Brand
9af2dc20e0
Remove xmpp.net provider info. Service has been discontinued
2017-06-19 15:42:41 +02:00
JC Brand
02e5921415
Fix problem of stuck/hanging tests on TravisCI
2017-06-19 15:05:22 +02:00
JC Brand
52e394a63e
Add inverse byline.
2017-06-18 00:23:34 +02:00
JC Brand
f988cb03c0
Various inverse-related CSS improvements.
...
Most notably, make toolbar same color as chat head and make private chats green
instead of orange.
2017-06-18 00:07:41 +02:00
JC Brand
10ae9a5ea4
Remove the ability to use emojione for rendering emoji
...
Creates an XSS opening.
2017-06-17 01:01:52 +02:00
JC Brand
ca53a8d8ef
Add support for Emojis
2017-06-17 01:01:52 +02:00
JC Brand
fb69106352
Fixes #887 Enclose embedded images in URLs
2017-06-16 15:11:19 +02:00
JC Brand
796edb03fe
Updates #890 . Make sure to clear session data
...
Otherwise carbons aren't re-enabled after reconnection.
2017-06-16 14:55:40 +02:00
JC Brand
f09d01c930
roster: Move roster push and rosterX handlers to core.
...
There's nothing about them that's view specific.
2017-06-16 11:42:46 +02:00
JC Brand
be28e04c57
roster: render unread messages in tab upon reload
...
Also including css fixes around the unread messages indicator.
2017-06-15 18:38:38 +02:00
JC Brand
336dc7408f
Remove the pulse entirely.
...
Couldn't get it to look/work satisfactorily
2017-06-15 18:29:08 +02:00
JC Brand
f07cb97db8
Show pulse around unread messages indicator
2017-06-15 18:27:48 +02:00
JC Brand
cf68ea70ac
css: fix unread messages indicator for private chats
2017-06-15 18:05:51 +02:00
JC Brand
e48015df66
Fixes #575
2017-06-15 17:51:56 +02:00
JC Brand
d527f693c2
Updates #890 Destroy and recreate session upon reconnection
...
This ensures that carbons will be activated again.
2017-06-15 17:30:26 +02:00
JC Brand
9ee5550cde
inverse: bugfix, when reloading, hidden auto-joined room was displayed
2017-06-15 16:22:49 +02:00
JC Brand
7e62546d6f
inverse: move brand heading into template
2017-06-15 15:16:17 +02:00
JC Brand
3181956b61
controlbox: use `sticky_controlbox
` setting to reduce inverse code
2017-06-15 15:01:34 +02:00
JC Brand
e29c2f8197
muc: render tab upon chatroom add
...
So that it shows unread messages upon page reload.
2017-06-15 12:32:33 +02:00
JC Brand
cc0f613118
rosterview: Include fullname (or JID) in tooltip for better UX
2017-06-15 11:27:05 +02:00
JC Brand
1f82b7dfe4
Create utils method isSameBareJID
. Refs: #894
2017-06-14 22:31:44 +02:00
Antonio Zoccoli
ad06c2b9cc
Converse ryzen 894 ( #895 )
...
* added change #894
* #894 - fix jid comparison in setAffiliationAndRole
2017-06-14 22:20:46 +02:00
JC Brand
6c262f7213
Various small changes to reduce (non-critical) errors during testing
2017-06-14 20:14:45 +02:00
JC Brand
b0c20d5473
We're now able to make inverse.js builds
2017-06-14 19:47:06 +02:00
JC Brand
076af0970f
Make spinner into a template
2017-06-14 19:43:02 +02:00
JC Brand
e1dace59ae
Bugfix. Don't scroll down on archived messages
...
when already scrolled up.
2017-06-14 19:43:02 +02:00
JC Brand
0d22f5c33c
Bugfix. Make sure to only append after a single message.
2017-06-14 19:43:02 +02:00
JC Brand
c9ecd3cd4d
Only initiate OTR for new messages.
2017-06-14 19:43:02 +02:00
JC Brand
eef002f2b7
Build fix
2017-06-14 17:40:11 +02:00
JC Brand
ebc6d1cc62
Use lodashLoader's root setting
2017-06-14 17:40:10 +02:00
JC Brand
7c831e1166
Various theming tweaks and improvements
2017-06-14 15:41:47 +02:00
JC Brand
41bb8b5da7
Make `converse-roomslist
` a core (i.e. by default whitelisted) plugin
2017-06-14 10:49:21 +02:00
JC Brand
651a5de315
inverse: Set more defaults in the plugin itself
2017-06-13 21:40:06 +02:00
JC Brand
b66ff721cd
Merge inVerse into this repo
2017-06-13 21:10:32 +02:00
JC Brand
78c5139486
singleton: Add soft dependency on rosterview
2017-06-13 19:17:45 +02:00
JC Brand
422aaef863
register: create renderRegistrationPanel
method
2017-06-13 19:11:32 +02:00
JC Brand
43408a6128
dragresize: render handles in the plugin
...
instead of having them already in the templates.
2017-06-13 18:53:41 +02:00
JC Brand
19d51f559d
Make the avatar's dimensions settable
2017-06-13 18:53:20 +02:00
JC Brand
2d4159802e
Bugfix. Don't override defaults for ChatBox
2017-06-13 18:22:19 +02:00
JC Brand
8191d5e83a
muc: Rename `createChatRoom
to
openChatRoom
`
...
It doesn't always create a new room.
2017-06-13 18:22:19 +02:00
JC Brand
1a95472ebe
singleton: Ensure obscured chats gets actively hidden.
...
So that when a room is closed, a previously obscured chat doesn't become
visible again. Allowing this would force us to know which chat is visible, so
that we can falsify it's `hidden` attribute.
2017-06-10 20:39:09 +02:00
JC Brand
d1bafdb38a
Re-render only the tab when num_unread
changes.
2017-06-09 23:45:54 +02:00
JC Brand
f9fb13a71d
muc: Make defaults
a function
...
otherwise also the prototype's defaults gets overwritten.
2017-06-07 17:47:50 +02:00
JC Brand
b5ecc1fc6a
Expose the fp version of lodash via the API
2017-06-07 09:15:22 +02:00
JC Brand
a128a70d41
Discriminate between which unread messages to indicate per tab
2017-06-07 00:55:57 +02:00
JC Brand
bbecee11d5
Add the functional programming version of lodash.
2017-06-07 00:43:09 +02:00
JC Brand
fcbeff4c72
Better check to know whether we can save the model
2017-06-06 22:12:54 +02:00
JC Brand
f897fbb7c0
Show number of unread mesages on the "Contacts" tab
2017-06-05 21:42:25 +02:00
JC Brand
5949ca9e36
Show number of unread messages on the "Rooms" tab
2017-06-05 14:52:24 +02:00
JC Brand
86dc3800aa
Render nickname form when entering a room via invitation
2017-05-24 17:18:54 +02:00
JC Brand
c83026e5a8
muc: Differentiate between generally unread messages and unread mentions
2017-05-24 08:40:09 +02:00
JC Brand
8fa06e7d52
Markup and CSS for showing unread messages for a room
2017-05-23 21:50:48 +02:00
JC Brand
a4284e48f7
Use proper message handler. Fix typo
2017-05-23 18:49:04 +02:00
JC Brand
7df2d36e42
We now have a separate Backbone.Model for chat rooms
...
Also... `num_unread` is now updated for groupchat messages in which the user is
mentioned.
2017-05-23 18:40:55 +02:00
JC Brand
5e783e70e4
Lay the groundwork for being able to have separate ChatRoom models
2017-05-23 18:16:47 +02:00
JC Brand
bab80a3234
No need to set num_unread, it has a default value.
2017-05-23 18:15:28 +02:00
JC Brand
6b2ca629cc
roomslist: expand tests
2017-05-22 13:40:07 +02:00
JC Brand
501c9f5e97
muc: Extract code into separate method renderRoomsPanel
2017-05-16 11:55:59 +02:00
JC Brand
7c9475e9fc
controlbox: Only render the contacts panel when connected
...
Otherwise it gets rendered multiple times (at least during testing).
2017-05-16 11:54:20 +02:00
JC Brand
8fe7fd2ec2
minimize: Use Backbone.Model's default
attribute
2017-05-16 11:19:15 +02:00
JC Brand
4f94a1f193
Refactor code that increments unread messages counter
...
Removed the "fetching_messages" hack.
2017-05-16 11:18:58 +02:00
JC Brand
023a68458c
Initial work on showing unread messages indicator for chat rooms
2017-05-15 19:08:08 +02:00
JC Brand
443b67012d
Right-float info icon
2017-05-15 18:43:12 +02:00
JC Brand
c5383ac22f
chatview: trigger 'add' event when fetching messages
...
Otherwise they don't appear when reloading the page.
I'm not completely happy with the resulting workaround to avoid that messages
restored from sessionStorage increment the unread messages counter, but it'll
have to do for now.
2017-05-15 18:37:54 +02:00
JC Brand
26cd567cca
bookmarks: only emit once the view has been created.
2017-05-15 18:04:28 +02:00
JC Brand
e49fbc457d
bookmarks: Don't duplicate bookmarks in list.
2017-05-15 18:04:28 +02:00
JC Brand
3343cb6991
Some small css fixes. Show correct icon for clearing messages
2017-05-15 17:38:37 +02:00
JC Brand
4994615824
core: Only throw error when trying keepalive without JID for prebind
2017-05-15 16:47:10 +02:00
JC Brand
ea207ad6be
Don't override credentials_url
password with connection password
...
Causes login failure when one-time tokens are used.
2017-05-11 14:46:24 +02:00
JC Brand
7eecd6b1dd
Move method closer to other relevant ones
2017-05-11 10:42:10 +02:00
JC Brand
0c61a5d791
core: Refactor common code into restoreBOSHSession
2017-05-11 10:42:10 +02:00
JC Brand
d50992b130
bookmarks: Fix remaining broken tests.
2017-05-09 09:45:12 +02:00
JC Brand
1ef99b3ecc
bookmarks: Handle chat box being passed into renderBookmarkListElement
2017-05-08 21:28:56 +02:00
JC Brand
3835ab7af6
bookmarks: Don't autojoin rooms prematurely
...
by first waiting until chatboxes have been fetched as well.
2017-05-08 21:28:56 +02:00
JC Brand
d81d62f98d
muc: check for browserStorage
attr instead of whether connected
2017-05-08 21:28:56 +02:00
JC Brand
70e4f28548
Initial work on showing open rooms in the "Rooms" panel
2017-05-08 21:28:56 +02:00
JC Brand
d8963a8a8c
bookmarks: New setting hide_open_bookmarks
2017-05-08 21:28:56 +02:00
JC Brand
0bd0798e34
Use the Backbone defaults
functionality
2017-05-08 21:28:56 +02:00
JC Brand
09bf04bf03
converse-bookmarks: Bugfix + make bookmark.html more generic
...
- Bugfix: Entire list was removed when last bookmark was removed.
- Make the template more generic so that it can be used for showing open chat
rooms
2017-05-08 21:28:56 +02:00
JC Brand
47ca3e64b2
Emit new event roomsPanelRendered
2017-05-08 21:28:56 +02:00
JC Brand
b32a8c5391
Update and simplify HTML/CSS for choosing status
...
Should also fix some of the issues mentioned in #847
2017-05-08 21:25:22 +02:00
JC Brand
3ec90096b9
Updates #864 : Bugfix. Both select elements were being shown
2017-05-07 11:24:46 +02:00
JC Brand
738d227297
Solve the intermittent issue of _ not being defined in templates
2017-05-05 11:48:10 +02:00
Novokreshchenov Konstantin
7c057910a8
Inconsistent unread messages count updating #873 ( #874 )
...
* Consistent unread messages count updating on ChatBoxView, Minimized ChatBoxView, RosterView and page's title
* Add tests for checking unread messages count updates in different GUI parts
* Update docs/CHANGES.md
* document windowStateChanged event in events.rst
2017-05-03 09:06:28 +02:00
Novokreshchenov Konstantin
4b46ec3f8c
#591 Unread message counter is reset when the chatbox is closed ( #867 )
...
* chatview: disable handling onMessageAdded when fetching messages during initialization
* update CHANGES.md
2017-05-01 13:05:58 +02:00
Mathias Ertl
913eeec351
Csp compat 2 ( #864 )
...
* remove inline style in roster template
* remove inline style from contacts panel
* remove inline-css from roster_filters
* remove inline style in trimmed chats
* remove last inline style from minimized chats
* update converse.css
* update changelog
2017-04-30 10:22:54 +02:00
JC Brand
227eb9b81c
Fix _ is undefined
error
2017-04-28 19:57:36 +02:00
JC Brand
30febd17d4
Throw error if more than one chatroom is given
2017-04-28 19:52:42 +02:00
JC Brand
4c23925684
Fixes #861 : Properly insert chatroom into DOM
2017-04-28 19:52:13 +02:00
Novokreshchenov Konstantin
dfd86d6c35
#567 Unreaded message count reset on page load ( #856 )
...
* save unread message count (num_unread) to server
* update CHANGES.md
2017-04-24 22:34:08 +02:00
JC Brand
b07e6291ea
Ensure that chats are opened when contacts are clicked.
2017-04-24 15:57:23 +02:00
JC Brand
15f962ad6d
Add converse-singleton
to the mobile build.
...
This will make the unread messages feature work.
Update so that new chats are opened in the background.
2017-04-24 15:57:23 +02:00
JC Brand
c81599931c
Fix failing tests based on recent unread message changes
2017-04-24 15:57:22 +02:00
JC Brand
d825a15baa
Clear when maximizing a chat box
2017-04-24 15:57:22 +02:00
JC Brand
f3d29e016e
Show unread messages counter next to roster contacts
2017-04-24 15:57:22 +02:00
JC Brand
ce16e1bcef
New plugin: converse-singleton.js
...
Ensures that max one chat box is visible at any given time.
For use in mobile or fullscreen applications.
2017-04-24 15:56:54 +02:00
JC Brand
a5ea86e29a
Initial CSS work on showing an unread messages indicator
2017-04-24 15:56:54 +02:00
JC Brand
e338afadc2
New release 3.0.2
2017-04-23 17:25:19 +00:00
JC Brand
41edd0567d
Don't try to parse non-strings
2017-04-23 17:19:01 +00:00
JC Brand
c7d66377d0
Use lodash.noConflict for underscore
2017-04-23 17:19:01 +00:00
JC Brand
865789d49e
"en" is always accepted, because default strings are English
2017-04-23 18:45:53 +02:00
Novokreshchenov Konstantin
bf1e612768
support opening chat in minimized mode initially ( #855 )
2017-04-23 15:38:48 +02:00
JC Brand
9f975c790b
preferred_locale
might be a JSON string, not an object
2017-04-22 19:29:02 +02:00
JC Brand
9faf9c3d6f
Don't rerender the text input when filtering contacts
2017-04-21 19:37:11 +02:00
JC Brand
bc1fa24315
Show the MUC server in a bookmarked room's info view
2017-04-21 19:05:10 +02:00
JC Brand
0bab19fafd
Render help messages via templates.
2017-04-21 18:35:34 +02:00
JC Brand
6af4480c14
Render disconnect message via template and add padding.
2017-04-21 18:26:59 +02:00
JC Brand
f3373c44fd
Fixes #850 . .where
method doesn't match numbers.
2017-04-21 18:06:28 +02:00
JC Brand
1936e28275
Enable creation of dist/converse-muc-embedded.js
build file
2017-04-21 18:06:27 +02:00
JC Brand
3ea43c6a0f
Use noConflict
to avoid polluting globale namespace
...
with lodash and Backbone.
2017-04-21 18:06:27 +02:00
JC Brand
39b3aa34d8
Fixes #848 OTR doesn't start when cache_otr_key
is set to true
2017-04-20 10:04:33 +02:00
JC Brand
15f6649ace
Bugfix. OTR meta-messages were being shown in HTML5 notifications
2017-04-20 10:02:59 +02:00
JC Brand
1a40b7aefb
TypeError: converse.log is not a function
2017-04-20 08:55:51 +02:00
JC Brand
f9898f32f1
converse-notification: MUC nickname wasn't being shown
2017-04-19 16:06:22 +02:00
JC Brand
1e100a67e3
Catch error when destroying
2017-04-19 15:40:27 +02:00
JC Brand
9f28728e61
Updates #849 . Don't call when no connection present
2017-04-19 14:47:18 +02:00
JC Brand
59ca7bae16
Make sure variables are interpolated when no translations exist.
2017-04-19 14:37:59 +02:00
JC Brand
f0deac9ec5
Updates #849
...
Refactor locales code to store the currently chosen locale as
`_converse.locale` and use that in converse-notifications.js
2017-04-19 14:37:52 +02:00
JC Brand
7ededd2379
Bugfix. class wasn't being toggled
2017-04-13 14:10:52 +00:00
JC Brand
1b38967d19
Updates #842 Persistent muc room creation not working
2017-04-13 11:19:24 +00:00
JC Brand
d781ebfd37
converse-core: More work on removing jQuery.
...
Only $.Deferred is still being used in converse-core.
2017-04-11 09:14:26 +00:00
JC Brand
3d2bfb5c8b
converse-core: Use built-in XHR instead of $.ajax
2017-04-11 08:33:56 +00:00
JC Brand
de2f33f333
Send button must be translateable and should type "submit"
2017-04-11 07:32:17 +00:00
JC Brand
d2eadbdce4
Use classList API
2017-04-06 23:21:52 +02:00
JC Brand
47a9566bb2
Update moment.js to 2.18.1
2017-04-06 22:11:39 +02:00
JC Brand
0c43e4b87c
Upgrade to Jasmine 2.5.3
2017-04-06 11:31:05 +02:00
JC Brand
21bc95a9f3
New release 3.0.1
2017-04-04 15:26:06 +00:00
JC Brand
d0f9f15d60
Bugfix. Prevent bypassing of password form via bookmark form
...
Not a security hole, but a UX issue.
Also... don't render artifacts before rendering the nickname form.
2017-04-04 14:45:50 +00:00
Novokreshchenov Konstantin
0b50c0c8c8
Fix #814 : Images from URLs with query strings aren't being rendered. ( #832 )
...
* unescape html characters in URL before checking whether it targets to image
* update docs/CHANGES.md
* test image's URL with query string which contains html-escaped characters
* utils.js: following code conventions
* split test url with query string to separate test
2017-04-04 16:05:50 +02:00
JC Brand
9ecb3e227f
Bugfix. Better check to see if spinner is already active
2017-04-04 11:21:25 +00:00
Marc Laporte
d83f64bcc9
Improve spelling ( #836 )
2017-04-04 09:11:55 +02:00
JC Brand
6045b3d1e1
Fix failing tests
2017-03-31 20:45:41 +00:00
JC Brand
09251f32c8
Remove the english translation files. No need for them.
2017-03-31 02:26:35 +00:00
JC Brand
a4be25e05c
Fix time format to show seconds instead of month
2017-03-31 02:01:53 +00:00
JC Brand
9fc61d9302
Bugfix. Endless spinner when trying to log in
...
after rendering the registration form.
2017-03-31 01:54:42 +00:00
JC Brand
d3a8032f61
Fixes #811 . jQuery wasn't being closured in builds.
2017-03-31 00:06:57 +00:00
JC Brand
898ad3107f
Get 3rd party dependencies from the converse obj
2017-03-30 17:00:24 +02:00
JC Brand
550cc51724
Some work on removing jQuery from converse-rosterview
2017-03-30 16:50:52 +02:00
JC Brand
0d256dbaf8
Query relative to the view element.
2017-03-30 14:39:44 +02:00
JC Brand
9a2c7257d7
Use the builtin JSON library
2017-03-30 14:16:00 +02:00
JC Brand
4dd8fa655e
Refactor to not use pseudo jQuery selector ':emptyVal'
2017-03-30 14:16:00 +02:00
JC Brand
cb94fd1940
Update isImage to not use jQuery
...
Updates #814
2017-03-30 14:09:18 +02:00
Anshul Singhal
99647438ac
Adds the send button at bottom of chatbox ( #796 )
...
Fixes #796 New config option: `show_send_button`
* Adds show_send_button setting to docs
* Change log updated
* Improves send button CSS, style fixes and documentation corrections
* Adds missing setting in rendering template for headlines
2017-03-30 12:40:17 +02:00
Soumit Bose
e6f3406977
Implemented auto fetching of registration form for default XMPP domain ( #812 )
2017-03-20 13:21:03 +01:00
JC Brand
6e94e11dcc
Fixes #820 . Inconsistency in displaying room features
2017-03-19 18:23:02 +00:00
Soumit Bose
c976f3f079
Fixed typing status for typing from different devices ( #802 )
2017-03-16 16:28:59 +01:00
JC Brand
9214c81bbc
Updated po files.
2017-03-15 11:02:25 +00:00
Soumit Bose
2c5ecd7120
Make messages' time format configurable ( #797 )
...
Fixes #675
* Made time format configurable
* Made changes to values of time_format
* Removed user restrictions on time format
* Added documentation for time-format config
* Edited changes.md
* Edited config doc
* Modified time-format explanation
* Added link to moment
* Added test to check rendered time
* Edited CHANGES and removeunncessary lines from time format checking spec
* Removed unncessary spaces
2017-03-12 11:32:38 +01:00
Anshul Singhal
40da1d688e
Fixes #628 . Bug in displaying chat status during private chat with carbons. (PR #801 )
...
* Fixes the bug in displaying chat status during private chat(message carbons)
* Adds fix#628 to ChangeLog
* Changes Log added to version 3.0.1
* Makes the string alphanumeric
* Orders the logs with ticket number
2017-03-09 12:38:54 +01:00
Anshul Singhal
3dd6ff1751
Fixes the duplication bug in adding contact and adds test for the same
2017-03-08 15:33:43 +01:00
JC Brand
5efb7fbf82
Fixes #806 Event listeners not triggered.
...
Functions need to be bound.
2017-03-08 11:54:23 +00:00
JC Brand
f1bf5a9654
Fixes #807
...
- Document `optional_plugin_dependencies`
- Also make `converse-headlines` an optional dependency of `converse-dragresize`
2017-03-08 11:36:46 +00:00
JC Brand
5fc6ab1e4e
Move plugin init code into method
2017-03-07 12:05:04 +01:00
JC Brand
741f2a6b9a
Make sure the occupants height is set after transition
2017-03-05 10:33:20 +00:00
JC Brand
27a0560ad3
Consistently use . Fixes failing test
2017-03-03 15:25:05 +01:00
JC Brand
f24e7c0905
Remove scrollDownMessageHeight. Fix failing test
2017-03-03 15:12:48 +01:00
JC Brand
0bc0072fea
chatview: Mark whether scrolling was automatic
...
so that we don't confuse it with the case where it was manual.
2017-03-03 14:55:03 +01:00
JC Brand
e1e20690f0
muc: the original stanza must be emitted
...
Otherwise other plugins don't know whether the message was forwarded or not.
2017-03-03 14:44:04 +01:00
JC Brand
eb82d64426
converse-controlbox: Retain open state after logging in.
2017-03-03 14:43:13 +01:00
JC Brand
62c8177142
Bugfix.
...
After bookmarking a room for which a nickname is required, return to the nickname form.
2017-03-02 23:28:22 +01:00
JC Brand
a5c0d5c451
Wrap long lines. No need for that
2017-03-02 23:06:40 +01:00
JC Brand
c58348dd02
Emit the original message, not just the forwarded part
...
Otherwise we receive HTML5 notifications for MAM messages because they can't be
identified as such.
2017-03-01 10:37:07 +00:00
JC Brand
a895c91f14
Programmatically set the occupants height
...
since I couldn't find a way to do this with only CSS.
2017-03-01 08:42:26 +01:00
JC Brand
78865bbccb
Don't show the features heading if we don't know of any
2017-02-28 22:34:16 +01:00
JC Brand
a3407bb98b
Move MAM specific code to converse-mam.js
2017-02-28 22:34:04 +01:00
JC Brand
dc8cbc6104
3 changes
...
- immediately show chat box (sometimes fetching features takes long)
- add timeout for fetching features
- don't register scroll handler twice for chat rooms.
2017-02-28 17:25:33 +00:00
JC Brand
2c88545b28
Fix edge case with /me messages. Show in italics.
2017-02-28 07:58:17 +00:00
JC Brand
9c72205774
Show room jid in a tooltip
2017-02-28 07:44:08 +00:00
JC Brand
bccdedc64f
Also show a hint explaining the roomchat status
2017-02-28 06:52:33 +01:00
JC Brand
f20d391ea6
Show chat room occupants' states.
2017-02-28 05:28:09 +00:00
JC Brand
f2f05ff484
MUC: Don't show duplicate join
messages.
2017-02-28 05:02:36 +00:00
JC Brand
21fbb7b7ac
Fix failing test by making sure chatroom gets destroyed
2017-02-27 21:21:38 +00:00
JC Brand
128335e1dc
50 seems like a better default
2017-02-27 21:12:15 +00:00
JC Brand
f8d9368163
MUC: only render and listen to 'scroll' event...
...
after the cached messages have been fetched.
2017-02-27 21:09:17 +00:00
JC Brand
adeac37b5c
Move more features HTML to chatroom_features.html
2017-02-27 17:59:33 +00:00
JC Brand
946a240080
Make sure to show the invite widget
...
when the room features change.
2017-02-27 17:56:40 +00:00
JC Brand
84a21415f0
Shut eslint up
2017-02-27 10:41:46 +00:00
JC Brand
cfb0cd0970
New defaults
2017-02-27 10:41:46 +00:00
JC Brand
ac867c9524
Rework the way builds are created.
...
Builds are now themselves UMD modules, so they could be `require`'d like any
other AMD module or they can still be used as old ES5 modules with globals.
Additionally the build is now closured, so that the almond API doesn't pollute
the global context with `define` or `require`. This does however mean that
`require` can no longer be used outside of the build (unless requirej.s is
included directly.
2017-02-27 10:37:01 +00:00
JC Brand
38c9a9e10c
Rework the way builds are created.
...
Builds are now themselves UMD modules, so they could be `require`'d like any
other AMD module or they can still be used as old ES5 modules with globals.
Additionally the build is now closured, so that the almond API doesn't pollute
the global context with `define` or `require`. This does however mean that
`require` can no longer be used outside of the build (unless requirej.s is
included directly.
2017-02-27 09:00:45 +00:00
JC Brand
704cef5590
Make work with latest strophe build
2017-02-25 22:26:54 +00:00
JC Brand
08fc0823de
More scrolling improvements
2017-02-25 22:26:54 +00:00
JC Brand
f60b4fc268
auto_away
shouldn't change the user's status if it's set to dnd
...
Fixes #620
2017-02-25 09:52:31 +00:00
JC Brand
9779e83931
Make the default archived_messages_page_size
100
2017-02-25 09:57:22 +01:00
JC Brand
adb4f62ea9
Fixes #790 mam retrieval broken
2017-02-25 09:54:41 +01:00
JC Brand
2c8b31c19d
Bugfix. getAttribute
returns null
2017-02-25 09:33:34 +01:00
JC Brand
2998ef818a
Chat rooms weren't being scrolled down after page reload
2017-02-25 07:48:28 +00:00
JC Brand
61b2dc7f99
Move MAM code to proper place.
...
Also, don't query for MAM messages if the chat room doesn't support it.
2017-02-24 20:52:23 +00:00
JC Brand
0d48929bb3
Show join/leave messages in chat rooms. Updates #365
2017-02-24 17:54:45 +00:00
JC Brand
b15c107e4e
Don't show notifications for full JID headline messages if...
...
allow_non_roster_messaging is false.
2017-02-24 17:13:38 +00:00
JC Brand
453d98db2c
Use native API instead of jquery
2017-02-24 17:13:38 +00:00
JC Brand
5c445a0268
Don't show headlines from full JID if allow_non_roster_messaging is false
2017-02-24 17:13:38 +00:00
JC Brand
6dfc82da0b
Native querying instead of using jquery
2017-02-24 12:00:05 +00:00
JC Brand
2ae2a1b505
Updated a bit to make it clearer.
2017-02-24 12:00:05 +00:00
JC Brand
305559a85c
Use sizzle in converse-muc.js
2017-02-24 12:00:05 +00:00
JC Brand
8a63813f5e
Add the ability to set the presence priority.
...
Fixes #745
2017-02-22 22:13:23 +01:00
JC Brand
17e0e70e4e
Support for XEP-0203 delayed delivery of presence stanzas
2017-02-21 23:30:11 +01:00
JC Brand
40605607e6
Specify radix for parseInt
2017-02-21 22:17:05 +01:00
JC Brand
4aa123d557
Add timestamps to resources
...
So that when a higher priority resource goes offline, we can fall back to the
right chat status if at the next priority level there are multiple resources.
789654d54e (comments)
2017-02-21 22:15:08 +01:00
JC Brand
728c7622e9
Use composition instead of chaining
2017-02-21 09:50:44 +01:00
JC Brand
d79bfe6f28
Use composition instead of chaining.
2017-02-21 09:35:50 +01:00
JC Brand
7ae2e46925
Expand tests and found a bug in the process.
...
updates #785
2017-02-20 22:37:06 +01:00
JC Brand
789654d54e
Updates #785 and #787
...
Improve upon the previous implementation.
If the resource with the highest priority goes offline or becomes unavailable,
then the chat status of the contact must fall back to that of the resource with
the next highest priority.
In your example from #785 , if the resource with priority 1 goes offline or
becomes unavailable, then in your implementation the chat status would stay at
online, although it must actually go to xa.
The solution is to update the resources attribute on the contact to not just be
an array or strings, but instead to be a map of resources to priorities and
statuses and to use that data structure.
2017-02-20 22:29:13 +01:00
w3host
15d2640c43
Presence priority NOT handled correctly #785 ( #787 )
2017-02-20 20:48:09 +01:00
JC Brand
62889089a6
Keep the features section near the bottom.
2017-02-20 14:35:15 +00:00
JC Brand
c845d419fe
Better way of getting a hold onto the chat room view
2017-02-19 11:03:24 +00:00
JC Brand
4c41ae8fad
Render room features separately
...
So that the occupants list doesn't get wiped.
2017-02-19 11:16:27 +01:00
JC Brand
9817aedea7
No need to set templates on the _converse object.
...
If it's needed in another plugin, it can simply be `require`'d.
2017-02-19 11:12:26 +01:00
JC Brand
054cba6503
Make accept/decline buttons accessible
2017-02-19 09:03:58 +00:00
JC Brand
a5bfd7fa57
Hide invite widget if the room is not open
...
or if the room is members-only and the user is not the owner.
2017-02-19 01:18:36 +00:00
JC Brand
441f7a2a15
Show the chatroom occupants JID in the tooltip
...
if you're allowed to see it.
2017-02-19 01:08:08 +00:00
JC Brand
a6ca5aad35
Show room features in the sidebar.
2017-02-19 00:39:08 +00:00
JC Brand
10a85336cc
Show the description in the heading, not the subject
2017-02-19 00:20:21 +00:00
JC Brand
0a99b9f22a
Don't query for room features for restored chat rooms.
2017-02-19 00:20:21 +00:00
JC Brand
efa8776881
By convention keep the render methods immediately after initialize
2017-02-18 10:03:26 +00:00
JC Brand
61bee4c263
The Strophe.Connection obj needs to be reset before reuse.
...
Otherwise re-login hangs after authfail.
2017-02-18 09:46:33 +00:00
JC Brand
33cc2c3cf5
Remove #BBB code for the deprecated prebind
option
...
replaced with the `authentication` option
2017-02-18 09:35:16 +00:00
JC Brand
fe6cb93a63
MUC: don't send out chat hints before join or after leave
2017-02-17 22:17:19 +01:00
JC Brand
f83043e5ab
Fix reference to missing parameter.
2017-02-17 22:07:11 +01:00
JC Brand
6379b0dd7a
Include the version number in the build files.
2017-02-17 20:52:08 +00:00
JC Brand
a1c156456d
Make keepalive
and roster_groups
true by default.
2017-02-17 08:54:58 +01:00
JC Brand
a2081d656c
Add shim for awesomplete
2017-02-16 14:26:48 +01:00
JC Brand
9218d649e9
Bugfix. Avoid infinite recursion (used wrong model).
2017-02-16 11:17:38 +01:00
JC Brand
65fa39dd81
Properly fix and test the /me command
2017-02-15 21:03:02 +00:00
JC Brand
a033899946
Fix leaky abstraction of MUC
2017-02-15 20:30:32 +00:00
JC Brand
148516e0cc
Fix almond builds. updates #779
2017-02-15 20:01:41 +00:00