mirror of
https://github.com/urbit/shrub.git
synced 2025-01-06 21:18:42 +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(() => {
|
useEffect(() => {
|
||||||
getNewest(`~${window.ship}`, 'dm-inbox', 100, `/${patp2dec(ship)}`);
|
if(!dm) {
|
||||||
}, [ship]);
|
getNewest(`~${window.ship}`, 'dm-inbox', 100, `/${patp2dec(ship)}`);
|
||||||
|
}
|
||||||
|
}, [ship, dm]);
|
||||||
|
|
||||||
const fetchMessages = useCallback(
|
const fetchMessages = useCallback(
|
||||||
async (newer: boolean) => {
|
async (newer: boolean) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user