DmResource: reload DM if cleared by kick
@@ -77,8 +77,10 @@ export function DmResource(props: DmResourceProps) {
);
useEffect(() => {
+ if(!dm) {
getNewest(`~${window.ship}`, 'dm-inbox', 100, `/${patp2dec(ship)}`);
- }, [ship]);
+ }
+ }, [ship, dm]);
const fetchMessages = useCallback(
async (newer: boolean) => {
