Commit 8ef3b10d authored by JC Brand's avatar JC Brand

Don't hide chats when `singleton` is true

parent 6d975264
...@@ -304,7 +304,7 @@ converse.plugins.add('converse-chat', { ...@@ -304,7 +304,7 @@ converse.plugins.add('converse-chat', {
return { return {
'bookmarked': false, 'bookmarked': false,
'chat_state': undefined, 'chat_state': undefined,
'hidden': _converse.isUniView(), 'hidden': _converse.isUniView() && !api.settings.get('singleton'),
'message_type': 'chat', 'message_type': 'chat',
'nickname': undefined, 'nickname': undefined,
'num_unread': 0, 'num_unread': 0,
......
...@@ -370,7 +370,7 @@ converse.plugins.add('converse-muc', { ...@@ -370,7 +370,7 @@ converse.plugins.add('converse-muc', {
'num_unread_general': 0, 'num_unread_general': 0,
'bookmarked': false, 'bookmarked': false,
'chat_state': undefined, 'chat_state': undefined,
'hidden': _converse.isUniView(), 'hidden': _converse.isUniView() && !api.settings.get('singleton'),
'message_type': 'groupchat', 'message_type': 'groupchat',
'name': '', 'name': '',
'num_unread': 0, 'num_unread': 0,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment