1
0
Fork 0

Only hide rooms in element-web

This commit is contained in:
Malte 2023-02-19 21:13:33 +01:00
parent 698deb0613
commit 5871cc7d9f
2 changed files with 11 additions and 12 deletions

View file

@ -1,11 +1,12 @@
final: prev: {
element-web = prev.element-web.overrideAttrs (old: {
preInstall = ''
bundlecss=$(find . -name 'bundle.css')
cat ${./user.css} >> $bundlecss
bundlejs=$(find . -name 'vendors~init.js')
sed -i 's/return n.room.roomId===e||n.isUnread}/return n.room.roomId===e||n.hasUnreadCount}/' $bundlejs
cp ${./orville_communicator.opus} webapp/media/message.ogg
'';
});
element-web = final.runCommand "maralorns-element-web" {} ''
cp -r ${prev.element-web} $out
cd $out
chmod u+w -R $out
bundlecss=$(find . -name 'bundle.css')
cat ${./user.css} >> $bundlecss
bundlejs=$(find . -name 'vendors~init.js')
sed -i 's/return n.room.roomId===e||n.isUnread}/return n.room.roomId===e||n.hasUnreadCount}/' $bundlejs
cp ${./orville_communicator.opus} media/message.ogg
'';
}

View file

@ -6,8 +6,6 @@
font-weight: normal !important;
}
/*
.mx_LeftPanel_wrapper {
.mx_RoomSublist[aria-label="Rooms"] .mx_RoomTile {
display: none !important;
}
*/