mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-23 06:03:09 +02:00
Merge branch 'develop' of https://github.com/misskey-dev/misskey into develop
This commit is contained in:
commit
fbf1f74e12
1 changed files with 2 additions and 2 deletions
|
@ -125,14 +125,14 @@ async function chooseChannel(ev: MouseEvent): Promise<void> {
|
||||||
const channels = await os.api('channels/my-favorites', {
|
const channels = await os.api('channels/my-favorites', {
|
||||||
limit: 100,
|
limit: 100,
|
||||||
});
|
});
|
||||||
const items = [
|
const items: MenuItem[] = [
|
||||||
...channels.map(channel => ({
|
...channels.map(channel => ({
|
||||||
type: 'link' as const,
|
type: 'link' as const,
|
||||||
text: channel.name,
|
text: channel.name,
|
||||||
indicate: channel.hasUnreadNote,
|
indicate: channel.hasUnreadNote,
|
||||||
to: `/channels/${channel.id}`,
|
to: `/channels/${channel.id}`,
|
||||||
})),
|
})),
|
||||||
(channels.length === 0 ? undefined : null),
|
(channels.length === 0 ? undefined : { type: 'divider' }),
|
||||||
{
|
{
|
||||||
type: 'link' as const,
|
type: 'link' as const,
|
||||||
icon: 'ti ti-plus',
|
icon: 'ti ti-plus',
|
||||||
|
|
Loading…
Reference in a new issue