mirror of
https://github.com/vector-im/element-call.git
synced 2026-09-16 22:09:30 +00:00
Switch to useShouldShowPtt hook
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
import { useLocation } from "react-router-dom";
|
||||
|
||||
export function useShouldShowPtt() {
|
||||
const { hash } = useLocation();
|
||||
return hash.startsWith("#ptt");
|
||||
}
|
||||
Reference in New Issue
Block a user