Skip to content

Commit

Permalink
Select chat modal should not re-order chats (#5648)
Browse files Browse the repository at this point in the history
  • Loading branch information
megrogan authored Apr 8, 2024
1 parent 0dd7051 commit 1a68167
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
14 changes: 11 additions & 3 deletions frontend/app/src/components/SelectChatModal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,18 @@
$: selectedChatId = client.selectedChatId;
$: globalState = client.globalStateStore;
let initialGlobalState: GlobalState | undefined = undefined;
$: {
buildListOfTargets($globalState, $now, $selectedChatId, searchTermLower).then(
(t) => (targets = t),
);
if (initialGlobalState === undefined && $globalState !== undefined) {
initialGlobalState = $globalState;
}
if (initialGlobalState !== undefined) {
buildListOfTargets(initialGlobalState, $now, $selectedChatId, searchTermLower).then(
(t) => (targets = t),
);
}
}
$: noTargets = getNumberOfTargets(targets) === 0;
Expand Down
2 changes: 1 addition & 1 deletion scripts/proposals/add_platform_moderator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ SCRIPT=$(readlink -f "$0")
SCRIPT_DIR=$(dirname "$SCRIPT")
cd $SCRIPT_DIR/..

# add_platform_operator args
# add_platform_moderator args
ARGS="(record { user_id=principal \"$USER_ID\" })"
FUNCTION_ID=1008

Expand Down

0 comments on commit 1a68167

Please sign in to comment.