mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-09-20 15:08:34 +03:00
Merge pull request #5281 from urbit/lf/landscape-fix
landscape: fix chats not bumping, hide spinner correctly
This commit is contained in:
commit
0a847c11f2
@ -112,7 +112,8 @@ function updateNotificationStats(state: HarkState, place: HarkPlace, f: (s: Hark
|
||||
function seenIndex(json: any, state: HarkState): HarkState {
|
||||
const data = _.get(json, 'saw-place');
|
||||
if(data) {
|
||||
updateNotificationStats(state, data, s => ({ last: Date.now() }));
|
||||
const last = data?.time || Date.now();
|
||||
updateNotificationStats(state, data.place, s => ({ last }));
|
||||
}
|
||||
return state;
|
||||
}
|
||||
|
@ -40,8 +40,8 @@ function Elbow(
|
||||
export function StatusBarJoins() {
|
||||
const pendingJoin = useGroupState(s => s.pendingJoin);
|
||||
if (
|
||||
Object.keys(_.omitBy(pendingJoin, j => j.progress === 'done')).length ===
|
||||
0
|
||||
Object.keys(_.omitBy(pendingJoin, j => j.hidden || j.progress === 'done'))
|
||||
.length === 0
|
||||
) {
|
||||
return null;
|
||||
}
|
||||
@ -113,9 +113,7 @@ export function JoinStatus({
|
||||
<Text>{desc}</Text>
|
||||
</Row>
|
||||
</Col>
|
||||
<Button onClick={onHide}>
|
||||
Hide
|
||||
</Button>
|
||||
<Button onClick={onHide}>Hide</Button>
|
||||
</Row>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user