mirror of
https://github.com/urbit/shrub.git
synced 2025-01-03 01:54:43 +03:00
Merge pull request #5525 from urbit/lf/fix-dm-loading
DmResource: reload DM if cleared by kick
This commit is contained in:
commit
4009f9d350
@ -77,8 +77,10 @@ export function DmResource(props: DmResourceProps) {
|
||||
);
|
||||
|
||||
useEffect(() => {
|
||||
getNewest(`~${window.ship}`, 'dm-inbox', 100, `/${patp2dec(ship)}`);
|
||||
}, [ship]);
|
||||
if(!dm) {
|
||||
getNewest(`~${window.ship}`, 'dm-inbox', 100, `/${patp2dec(ship)}`);
|
||||
}
|
||||
}, [ship, dm]);
|
||||
|
||||
const fetchMessages = useCallback(
|
||||
async (newer: boolean) => {
|
||||
|
Loading…
Reference in New Issue
Block a user