community: the board counts your pending proposals under the key you wear there
This commit is contained in:
1 parent
06baa5a805
commit
0ff65fd9b5
1 file changed
+3
-1
@@ -397,7 +397,9 @@ fn view_of(
|
|||||||
can_propose: reachable && current.is_some() && roster.contains(worn),
|
can_propose: reachable && current.is_some() && roster.contains(worn),
|
||||||
proposals,
|
proposals,
|
||||||
decisions,
|
decisions,
|
||||||
pending_mine: board.proposals.iter().filter(|p| &p.author == me).count() as u32,
|
// `worn`, not `me`: on someone else's Space we author under a
|
||||||
|
// room-local key, so counting against the persona counts nothing.
|
||||||
|
pending_mine: board.proposals.iter().filter(|p| &p.author == worn).count() as u32,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user