I am trying to override the renderActions function but it is not working, I am trying to add icons in every massage, I have tried like the below code:
export const restrictUserOnLoadPlugin = () => {
window.converse.plugins.add('restrict-user', {
overrides: {
renderActions: function () {
console.log('in');
const kick = {
i18n_text: 'kick',
handler: (e: any) => console.log(e),
button_class: 'chat-msg__action-edit',
icon_class: 'fa fa-pencil-alt',
name: 'kick',
};
return `<converse-dropdown class="chat-msg__actions" .items=${kick}></converse-dropdown>`;
},
},
});
};