mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-21 04:17:01 -04:00
Merge remote-tracking branch 'upstream/dev'
This commit is contained in:
commit
9fbfcb019a
10 changed files with 174 additions and 26 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue