Fix the mechanical lint groups and delete the unused bindings. [skip build]
This commit is contained in:
1 parent
593dd3bdf3
commit
5477242661
26 files changed
+95
-161
No files matched your search
@@ -600,14 +600,6 @@ export function TitleBar({ mx, children }: TitleBarProps) {
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [mx, roomId, roomToParents, mDirects, updateCounter]);
|
||||
|
||||
// Get room name (for backward compatibility, keeping simple name too)
|
||||
const roomName = useMemo(() => {
|
||||
if (!mx || !roomId) return null;
|
||||
const room = mx.getRoom(roomId);
|
||||
return room?.name || null;
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [mx, roomId, updateCounter]);
|
||||
|
||||
// Get total unread count
|
||||
const totalUnread = useMemo(() => {
|
||||
if (!mx) return 0;
|
||||
|
||||
Reference in new issue
Block a user