add synchronous channel subscribe frontend, #862

This commit is contained in:
Simon
2025-01-08 16:06:23 +07:00
parent d79fbcd168
commit 0411b14c5c
7 changed files with 36 additions and 36 deletions

View File

@@ -11,7 +11,7 @@ import ChannelList from '../components/ChannelList';
import ScrollToTopOnNavigate from '../components/ScrollToTop';
import Notifications from '../components/Notifications';
import Button from '../components/Button';
import updateChannelSubscription from '../api/actions/updateChannelSubscription';
import updateBulkChannelSubscriptions from '../api/actions/updateBulkChannelSubscriptions';
import useIsAdmin from '../functions/useIsAdmin';
import { useUserConfigStore } from '../stores/UserConfigStore';
@@ -110,7 +110,7 @@ const Channels = () => {
label="Subscribe"
type="submit"
onClick={async () => {
await updateChannelSubscription(channelsToSubscribeTo, true);
await updateBulkChannelSubscriptions(channelsToSubscribeTo, true);
setRefresh(true);
}}