JC Brand
8fa06e7d52
Markup and CSS for showing unread messages for a room
2017-05-23 21:50:48 +02:00
JC Brand
3e5beaaf64
Add test to check that the open rooms list shows unread messages
2017-05-23 20:42:12 +02:00
JC Brand
a4284e48f7
Use proper message handler. Fix typo
2017-05-23 18:49:04 +02:00
JC Brand
bae06922fc
fixup
2017-05-23 18:40:55 +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
c04f690c44
Remove old docs and move CHANGES.md to root
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
4db2e7bacf
Allow settings to be passed in first.
2017-05-23 18:16:07 +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
184f08157c
Test the hide_open_bookmarks
setting.
2017-05-23 14:59:37 +02:00
JC Brand
67257b0ae4
Test that room can be closed from rooms' list
2017-05-23 14:39:35 +02:00
JC Brand
754caad079
No way currently to remove plugins
...
and I'm not aware of a valid usecase for doing so.
2017-05-22 13:40:07 +02:00
JC Brand
6b2ca629cc
roomslist: expand tests
2017-05-22 13:40:07 +02:00
JC Brand
095606a824
roomslist: Add initial test spec for converse-roomslist
.
2017-05-16 12:00:43 +02:00
JC Brand
f636fa4855
mock: Allow for settings to be passed in first
2017-05-16 11:56:33 +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
5dd3b93a05
roomslist: update changelog
2017-05-09 09:49:09 +02:00
JC Brand
d50992b130
bookmarks: Fix remaining broken tests.
2017-05-09 09:45:12 +02:00
JC Brand
07dbf14a7d
bookmarks: enable registration of spy on the mock connection during init
...
We need this because when the plugin listens to a promise, we can't trigger it
again later (after adding our spy), we instead need to add the spy beforehand.
2017-05-08 21:28:56 +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
JC Brand
ed9ba78863
Mention that credentials_url
can/should be used with auto_login
2017-05-03 09:18:58 +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
Greenkeeper
bbc4a0e1cd
chore(package): update http-server to version 0.10.0 ( #868 )
...
https://greenkeeper.io/
2017-05-02 09:37:36 +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