mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-10 15:13:02 -04:00
feat(plugin): sort friend requests by date received (#280)
This commit is contained in:
parent
022bf17140
commit
ee24439795
4 changed files with 80 additions and 1 deletions
|
@ -52,7 +52,10 @@ export let UserStore: Stores.UserStore;
|
|||
export let SelectedChannelStore: Stores.SelectedChannelStore;
|
||||
export let SelectedGuildStore: any;
|
||||
export let ChannelStore: Stores.ChannelStore;
|
||||
export let RelationshipStore: Stores.RelationshipStore;
|
||||
export let RelationshipStore: Stores.RelationshipStore & {
|
||||
/** Get the date (as a string) that the relationship was created */
|
||||
getSince(userId: string): string;
|
||||
};
|
||||
|
||||
export const Forms = {} as {
|
||||
FormTitle: Components.FormTitle;
|
||||
|
|
|
@ -137,6 +137,7 @@ function patchPush() {
|
|||
|
||||
// @ts-ignore we change all patch.replacement to array in plugins/index
|
||||
for (const replacement of patch.replacement) {
|
||||
if (replacement.predicate && !replacement.predicate()) continue;
|
||||
const lastMod = mod;
|
||||
const lastCode = code;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue