mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-20 20:07:03 -04:00
feat(plugin): Read all notifications button (#217)
Co-authored-by: Ven <vendicated@riseup.net>
This commit is contained in:
parent
8f2c247f27
commit
5ce2dc1bb4
7 changed files with 186 additions and 2 deletions
|
@ -136,5 +136,9 @@ export const Devs = Object.freeze({
|
|||
KraXen72: {
|
||||
name: "KraXen72",
|
||||
id: 379304073515499530n
|
||||
},
|
||||
kemo: {
|
||||
name: "kemo",
|
||||
id: 299693897859465228n
|
||||
}
|
||||
});
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
import { Guild } from "discord-types/general";
|
||||
|
||||
import { ChannelStore, GuildStore,SelectedChannelStore } from "../webpack/common";
|
||||
import { ChannelStore, GuildStore, PrivateChannelsStore, SelectedChannelStore } from "../webpack/common";
|
||||
|
||||
export function getCurrentChannel() {
|
||||
return ChannelStore.getChannel(SelectedChannelStore.getChannelId());
|
||||
|
@ -27,3 +27,7 @@ export function getCurrentChannel() {
|
|||
export function getCurrentGuild(): Guild | undefined {
|
||||
return GuildStore.getGuild(getCurrentChannel()?.guild_id);
|
||||
}
|
||||
|
||||
export function openPrivateChannel(userId: string) {
|
||||
PrivateChannelsStore.openPrivateChannel(userId);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue