SortFriends: I forgot to migrate

This commit is contained in:
thororen1234 2025-09-23 08:46:15 -04:00
parent 14dc683c9c
commit 3d4e06ef79
No known key found for this signature in database
3 changed files with 9 additions and 8 deletions

View file

@ -71,7 +71,7 @@ export default definePlugin({
replace: "$1.fetchRelationships(),$self.fetchImplicitRelationships()"
},
},
// Modify sort -- thanks megu for the patch (from sortFriendRequests)
// Modify sort -- thanks megu for the patch (from sortFriends)
{
find: "getRelationshipCounts(){",
replacement: {

View file

@ -18,7 +18,7 @@
import "./styles.css";
import { definePluginSettings } from "@api/Settings";
import { definePluginSettings, migratePluginSettings } from "@api/Settings";
import { classNameFactory } from "@api/Styles";
import ErrorBoundary from "@components/ErrorBoundary";
import { Devs, EquicordDevs } from "@utils/constants";
@ -33,7 +33,7 @@ const formatter = new Intl.DateTimeFormat(undefined, {
year: "numeric",
});
const cl = classNameFactory("vc-sortFriendRequests-");
const cl = classNameFactory("vc-sortFriends-");
function getSince(user: User) {
return new Date(RelationshipStore.getSince(user.id));
@ -48,8 +48,9 @@ const settings = definePluginSettings({
}
});
migratePluginSettings("SortFriends", "SortFriendRequests");
export default definePlugin({
name: "SortFriendRequests",
name: "SortFriends",
authors: [Devs.Megu, EquicordDevs.CallMeGii],
description: "Sorts friend requests by date of receipt",
settings,

View file

@ -1,4 +1,4 @@
.vc-sortFriendRequests-wrapper {
.vc-sortFriends-wrapper {
display: flex;
flex-direction: row;
justify-content: space-between;
@ -7,12 +7,12 @@
margin-right: 0.5em;
}
.vc-sortFriendRequests-tooltip {
.vc-sortFriends-tooltip {
max-width: none;
white-space: nowrap;
}
.vc-sortFriendRequests-date {
.vc-sortFriends-date {
color: var(--text-muted);
font-family: var(--font-code);
}
}