Compare commits
2 commits
10a54cf6ac
...
95481a289b
Author | SHA1 | Date | |
---|---|---|---|
Ben | 95481a289b | ||
Ben | 037b95aded |
|
@ -44,7 +44,7 @@ class ChatMapper extends QBMapper
|
|||
->from('upschooling_chats')
|
||||
->where(
|
||||
$qb->expr()->eq('ticket_id', $qb->createNamedParameter($ticketId, IQueryBuilder::PARAM_INT)),
|
||||
$qb->expr()->isNull('end_date')
|
||||
$qb->expr()->isNull('date_end')
|
||||
);
|
||||
return $this->findEntity($qb);
|
||||
}
|
||||
|
|
|
@ -134,7 +134,20 @@ export default {
|
|||
elementWebFrame.contentWindow.mxDispatcher.dispatch({
|
||||
action: 'view_room',
|
||||
room_id: matrixInfoResponse.data.matrixChatRoom,
|
||||
}, true)
|
||||
|
||||
// removes left panel by DOM manipulation
|
||||
const matrixchat = elementWebFrame.contentDocument.getElementById('matrixchat')
|
||||
console.debug(matrixchat)
|
||||
const observerConfig = { attributes: false, childList: true, subtree: true }
|
||||
const observer = new MutationObserver((mutationsList, observer) => {
|
||||
console.debug('observer kicked', observer)
|
||||
const leftPanelsByClass = elementWebFrame.contentDocument.getElementsByClassName('mx_LeftPanel_outerWrapper')
|
||||
for (const leftPanel of leftPanelsByClass) {
|
||||
leftPanel.remove()
|
||||
}
|
||||
})
|
||||
observer.observe(matrixchat, observerConfig)
|
||||
}).catch(console.error)
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue