chore(mobx): write jsdoc for notif opt.

This commit is contained in:
Paul
2021-12-12 12:26:45 +00:00
parent 413bf6949b
commit ec83230c59
3 changed files with 66 additions and 16 deletions

View File

@@ -53,11 +53,7 @@ function Notifier({ options }: Props) {
const message = useCallback(
async (msg: Message) => {
if (msg.author_id === client.user!._id) return;
if (msg.channel_id === channel_id && document.hasFocus()) return;
if (client.user!.status?.presence === Presence.Busy) return;
if (msg.author?.relationship === RelationshipStatus.Blocked) return;
if (!notifs.shouldNotify(msg)) return;
playSound("message");