JC Brand
1666a45c6b
Handle case where this
of overridden method is not the pluggable
...
due for example to it being called by an event handler.
2016-06-30 14:15:05 +02:00
JC Brand
01f576e505
Return all rooms or private chat when caling get
without arguments
2016-06-24 10:54:39 +02:00
JC Brand
be122af3ed
Add tests for rendering of error messages.
2016-06-23 08:56:15 +02:00
JC Brand
e06a34a905
Some initial work on show messages with type "error"
2016-06-22 18:47:07 +02:00
JC Brand
9e8674ef55
Rename ChatBoxView.insertIntoPage
to ChatBoxView.insertIntoDOM
...
to ensure naming consistency, we have the same method on `ChatRoomView`.
2016-06-22 15:54:22 +02:00
JC Brand
081d377881
Move code from plugins to core.
...
Move init of RosterGroups collection and presenceHandler registration out of
the controlbox and rosterview plugins and into core, since this code is
generally useful (indeed necessary) even without those plugins.
2016-06-22 10:25:01 +00:00
JC Brand
9cfec0ba8c
Show requesting contacts at the top of the roster view.
2016-06-21 17:48:18 +00:00
JC Brand
7f753040de
Move roster-related models/collections to core
2016-06-21 17:36:40 +00:00
JC Brand
888cd8c982
Mention the new CDN
2016-06-21 07:07:22 +00:00
JC Brand
ffa8661799
Update chatroom css
2016-06-20 19:56:06 +00:00
JC Brand
598e29c910
New release: 1.0.3
2016-06-20 19:20:47 +00:00
JC Brand
58d30a82da
Fix link to XEP-144
2016-06-20 19:07:18 +00:00
JC Brand
b90ad3aa6e
Don't check visibility before hiding.
...
In some cases the element is not visible,but we want to set 'display: None'
regardless, for example in cases where you only want one single chat of
multiple to be visible at any one time, while hiding it behind a sidebar.
2016-06-17 17:43:09 +02:00
JC Brand
d2933b896e
Ignore messages without a body
2016-06-17 09:33:09 +00:00
JC Brand
705c043852
Fixes concerning tab visibility
2016-06-17 09:30:47 +00:00
JC Brand
10ca2900d4
Add a "create" parameter to rooms.get
...
to indicate whether the room should be created if not found.
2016-06-17 09:30:31 +00:00
JC Brand
95c5f9d420
Better support for checking whether the page is visible or not.
2016-06-16 16:14:22 +00:00
JC Brand
ee6d7ebd7a
Bugfix. Need to strip the resource to get the room jid
2016-06-16 17:24:58 +02:00
JC Brand
e12c165454
Add new event pluginsInitialized
and use it in converse-notifications
...
By listening for this event before registering event handlers, other plugins
can first get their overrides of those handlers applied.
2016-06-16 17:21:49 +02:00
JC Brand
73bf2f88ea
Bugfix. The rooms.get method didn't work properly
...
because the method it was delegating to was applicable to private chats only.
2016-06-16 17:20:11 +02:00
JC Brand
70f1570984
Bugfix. If controlbox is not there, undefined is returned.:wq
2016-06-16 17:15:27 +02:00
JC Brand
70135ba070
Add new config option notify_all_room_messages
2016-06-16 13:29:49 +02:00
JC Brand
249fb0fec5
Don't increment messages counter for MAM messages.
2016-06-16 10:39:08 +02:00
JC Brand
2c6f6bfef2
Merge branch 'soft-dependencie'
2016-06-13 07:45:15 +00:00
JC Brand
e2f1c68cff
Always show the chat when calling 'open'
2016-06-13 07:36:59 +00:00
JC Brand
380a60aebd
Two fixes related to occupants toggling
...
* Empty chat area doesn't resize when hiding occupants.
* Properly change icon when toggling occupants
2016-06-13 07:36:59 +00:00
amanzur
45a3e643a8
online users count issue-656 ( #657 )
...
* online users count issue-656
* change log entry added for issue 656
2016-06-10 16:27:28 +02:00
JC Brand
854633089d
Add config setting to disable MUC direct invites.
2016-06-10 14:17:10 +00:00
JC Brand
6258cfa089
Check the "closed" state of the controlbox
...
when trimming chats.
2016-06-10 08:26:38 +00:00
JC Brand
1bf8b80cec
Refactored converse-pluggable to remove all deferreds
...
by not attempting to load `optional_dependencies` via require.js.
Instead, we just expect them to be plugins and to have been loaded already.
2016-06-10 08:26:38 +00:00
JC Brand
454f8ef034
Let converse.initialize return a deferred
...
and use that in the tests, instead of a callback.
2016-06-10 08:26:38 +00:00
JC Brand
62c170273e
Allow plugins to have optional dependencies.
...
This change refactors out the plugin code from converse-core into
src/converse-puggable.js
Additionally, plugins now have an optional attribute `optional_dependencies`
which is an array of dependencies which are "nice-to-have" but not essential.
Work has also been done to ensure that a plugins' dependencies are first loaded
before the plugin itself.
2016-06-10 08:26:29 +00:00
JC Brand
3ca6108083
Add controlbox back as dependency of MUC.
...
Will have to come up with some other way to disable it in cases where it's not
needed.
2016-06-06 20:52:05 +00:00
JC Brand
eb3252542e
Split showChat into two methods to allow easier overriding.
2016-06-06 07:50:10 +00:00
JC Brand
600650a4c7
Let the headline plugin work without dragresize
2016-06-06 07:50:10 +00:00
JC Brand
5b80d67a98
Return before trying to extend the object
...
when strict_plugin_dependencies is set to `false`.
2016-06-03 19:25:09 +02:00
JC Brand
66242fc2f2
Remove the controlbox as a dependency of converse-muc.
2016-06-03 18:47:23 +02:00
JC Brand
1b8ab4c4ec
Refactor code into insertIntoDOM method
...
To make overridding it easier.
2016-06-03 13:56:00 +02:00
JC Brand
6c99c51c74
New API method converse.rooms.close()
.
2016-06-03 08:41:13 +00:00
JC Brand
f60a0512d9
Emit an event when the roster is fetched from the cache
...
We already emit an event when the roster is fetched from the XMPP server,
similarly, it would be useful to know when the roster was instead fetched from
the cache.
2016-06-01 16:04:06 +00:00
JC Brand
f9528e7144
Pass the jid to restore
...
if it's defined, then we want the extra check that the jids match, otherwise
we might be attaching to someone else's session.
2016-05-31 12:25:09 +00:00
JC Brand
0002c0bd53
converse._tearDown
shouldn't be called from converse-controlbox.js
2016-05-31 10:24:22 +00:00
JC Brand
7398d41405
Some improvements to constructPresence
...
Don't <show> 'offline'.
Only include status_message when explicitly passed in as a string.
2016-05-31 09:40:18 +00:00
JC Brand
f70a3c3ed2
Add new configuration variable: default_state
2016-05-31 09:37:42 +00:00
JC Brand
2805bf8020
Add log
method to API.
2016-05-31 07:20:36 +00:00
JC Brand
b4aeb94279
Don't use sound/desktop notification for OTR messages.
2016-05-30 18:19:10 +00:00
JC Brand
6bfcce5fcb
Don't ignore incoming messages from current JID
...
they might be MAM archived messages.
Fixes #650
2016-05-30 17:30:14 +00:00
JC Brand
2b88db812d
Don't show "new messages" indicator for archived messages
2016-05-30 17:18:07 +00:00
JC Brand
a050015e61
Add processing hints to chat state notifications
...
So that they're not stored in MAM.
2016-05-30 16:53:31 +00:00
JC Brand
bd23a7751a
Add processing hints to OTR messages
...
so that they're not stored in MAM and not forwarded.
updates #553
2016-05-30 16:52:26 +00:00