Merge remote-tracking branch 'upstream/dev'

This commit is contained in:
thororen1234 2024-05-27 21:15:25 -04:00
commit 9fbfcb019a
10 changed files with 174 additions and 26 deletions

View file

@ -52,6 +52,8 @@ export default definePlugin({
getFriendSince(userId: string) {
try {
if (!RelationshipStore.isFriend(userId)) return null;
return RelationshipStore.getSince(userId);
} catch (err) {
new Logger("FriendsSince").error(err);
@ -60,6 +62,8 @@ export default definePlugin({
},
friendsSince: ErrorBoundary.wrap(({ userId, textClassName }: { userId: string; textClassName?: string; }) => {
if (!RelationshipStore.isFriend(userId)) return null;
const friendsSince = RelationshipStore.getSince(userId);
if (!friendsSince) return null;