|
@@ -15,6 +15,7 @@ class MessageActions extends CustomElement {
|
|
correcting: { type: Boolean },
|
|
correcting: { type: Boolean },
|
|
editable: { type: Boolean },
|
|
editable: { type: Boolean },
|
|
hide_url_previews: { type: Boolean },
|
|
hide_url_previews: { type: Boolean },
|
|
|
|
+ is_newest_message: { type: Boolean },
|
|
is_retracted: { type: Boolean },
|
|
is_retracted: { type: Boolean },
|
|
message_type: { type: String },
|
|
message_type: { type: String },
|
|
model: { type: Object },
|
|
model: { type: Object },
|
|
@@ -30,7 +31,9 @@ class MessageActions extends CustomElement {
|
|
const buttons = await this.getActionButtons();
|
|
const buttons = await this.getActionButtons();
|
|
const items = buttons.map(b => MessageActions.getActionsDropdownItem(b));
|
|
const items = buttons.map(b => MessageActions.getActionsDropdownItem(b));
|
|
if (items.length) {
|
|
if (items.length) {
|
|
- return html`<converse-dropdown class="chat-msg__actions" .items=${ items }></converse-dropdown>`;
|
|
|
|
|
|
+ return html`<converse-dropdown
|
|
|
|
+ class="chat-msg__actions ${this.is_newest_message ? 'dropup dropup--left' : 'dropleft'}"
|
|
|
|
+ .items=${ items }></converse-dropdown>`;
|
|
} else {
|
|
} else {
|
|
return '';
|
|
return '';
|
|
}
|
|
}
|