groups-ui: Fix members list not updating when creating groups.

On removing a user or group pill from input, the user or group
was not being removed from the table. This was because of
onPillRemove not being set for the pill widget as it was
removed by mistake while doing other changes in ec65dad063.
This commit is contained in:
Sahil Batra
2025-07-08 15:19:03 +05:30
committed by Tim Abbott
parent 8a42845605
commit 635cd1133c

View File

@@ -122,10 +122,12 @@ export function create({
}
if (onPillRemoveAction) {
void (async () => {
const user_ids = await get_pill_user_ids(pill_widget);
onPillRemoveAction(user_ids, get_pill_group_ids(pill_widget));
})();
pill_widget.onPillRemove(() => {
void (async () => {
const user_ids = await get_pill_user_ids(pill_widget);
onPillRemoveAction(user_ids, get_pill_group_ids(pill_widget));
})();
});
}
function get_users(): User[] {