Commit 21741649 authored by JC Brand's avatar JC Brand

Don't hide close button for chats

I find it useful to be able to close them
parent d16bb315
...@@ -7665,8 +7665,6 @@ body { ...@@ -7665,8 +7665,6 @@ body {
font-size: 50%; font-size: 50%;
height: auto; height: auto;
line-height: 22px; } line-height: 22px; }
#conversejs.fullscreen .chat-head.chat-head-chatbox .close-chatbox-button {
display: none; }
#conversejs.fullscreen .chatbox { #conversejs.fullscreen .chatbox {
width: 100%; width: 100%;
height: 100%; height: 100%;
......
...@@ -17,11 +17,6 @@ ...@@ -17,11 +17,6 @@
height: auto; height: auto;
line-height: $line-height; line-height: $line-height;
} }
&.chat-head-chatbox {
.close-chatbox-button {
display: none;
}
}
} }
.chatbox { .chatbox {
width: 100%; width: 100%;
......
...@@ -263,10 +263,10 @@ ...@@ -263,10 +263,10 @@
if (!_converse.allow_contact_removal) { return; } if (!_converse.allow_contact_removal) { return; }
const result = confirm(__("Are you sure you want to remove this contact?")); const result = confirm(__("Are you sure you want to remove this contact?"));
if (result === true) { if (result === true) {
this.contact.removeFromRoster( this.model.contact.removeFromRoster(
(iq) => { (iq) => {
this.contact.destroy(); this.model.contact.destroy();
delete this.contact; delete this.model.contact;
}, },
(err) => { (err) => {
_converse.log(err, Strophe.LogLevel.ERROR); _converse.log(err, Strophe.LogLevel.ERROR);
......
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