mirror of
https://github.com/samuelthomas2774/nxapi.git
synced 2026-04-26 00:13:08 -05:00
Fix sharing a friend's presence on Discord
This commit is contained in:
parent
8f5965913d
commit
9d05161bf3
|
|
@ -209,7 +209,7 @@ export class ZncDiscordPresence extends ZncNotifications {
|
||||||
this.show_console_online = argv.showInactivePresence;
|
this.show_console_online = argv.showInactivePresence;
|
||||||
this.show_active_event = argv.showEvent;
|
this.show_active_event = argv.showEvent;
|
||||||
|
|
||||||
this.presence_user = argv.friendNsaid ?? data.nsoAccount.user.nsaId;
|
this.presence_user = argv.friendNsaid ?? data?.nsoAccount.user.nsaId;
|
||||||
}
|
}
|
||||||
|
|
||||||
async init() {
|
async init() {
|
||||||
|
|
@ -217,7 +217,7 @@ export class ZncDiscordPresence extends ZncNotifications {
|
||||||
'announcements',
|
'announcements',
|
||||||
this.presence_user ?
|
this.presence_user ?
|
||||||
this.presence_user === this.data.nsoAccount.user.nsaId ? 'user' :
|
this.presence_user === this.data.nsoAccount.user.nsaId ? 'user' :
|
||||||
{friend: this.presence_user, presence: true} : null,
|
{friend: this.presence_user} : null,
|
||||||
this.presence_user && this.show_active_event ? 'event' : null,
|
this.presence_user && this.show_active_event ? 'event' : null,
|
||||||
this.user_notifications ? 'user' : null,
|
this.user_notifications ? 'user' : null,
|
||||||
this.friend_notifications ? 'friends' : null,
|
this.friend_notifications ? 'friends' : null,
|
||||||
|
|
@ -372,7 +372,7 @@ export class ZncDiscordPresence extends ZncNotifications {
|
||||||
const {friends, user, activeevent} = await this.fetch([
|
const {friends, user, activeevent} = await this.fetch([
|
||||||
this.presence_user ?
|
this.presence_user ?
|
||||||
this.presence_user === this.data.nsoAccount.user.nsaId ? 'user' :
|
this.presence_user === this.data.nsoAccount.user.nsaId ? 'user' :
|
||||||
{friend: this.presence_user, presence: true} : null,
|
{friend: this.presence_user} : null,
|
||||||
this.presence_user && this.show_active_event ? 'event' : null,
|
this.presence_user && this.show_active_event ? 'event' : null,
|
||||||
this.user_notifications ? 'user' : null,
|
this.user_notifications ? 'user' : null,
|
||||||
this.friend_notifications ? 'friends' : null,
|
this.friend_notifications ? 'friends' : null,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user