Show current conversation image

This commit is contained in:
Pierre HUBERT 2021-03-07 15:33:29 +01:00
parent 298c251e2f
commit 4fdb74d9d0
2 changed files with 16 additions and 1 deletions

View File

@ -95,6 +95,10 @@
transform: translate(0, 0);
}
#conversationsElem .conversation-settings-pane .conversation-image-settings {
text-align: center;
}
#conversationsElem .conversation-settings-pane .conversation-image-settings .btn {
margin: 5px;
width: 100%;

View File

@ -730,10 +730,21 @@ const ConvChatWindow = {
appendTo: settingsForm.rootElem,
type: "div",
class: "conversation-image-settings",
innerHTML: "<br/><br/><p><strong>" + tr("Conversation image") + ": </strong></p>"
innerHTML: "<br/><br/><p><strong>" + tr("Conversation image") + "</strong></p>"
})
// Show current
if (conversation.infos.logo != null) {
createElem2({
appendTo: convImageSection,
type: "img",
src: conversation.infos.logo,
class: "current-image"
})
}
// Upload a new logo
const newConvImagebutton = createElem2({
appendTo: convImageSection,