From 6670c69fdadfa13fc713adc116f6471537d07295 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sat, 31 May 2025 02:46:35 +0800 Subject: [PATCH] :bug: Add priority to chat notification --- DysonNetwork.Sphere/Chat/ChatRoomService.cs | 1 - DysonNetwork.Sphere/Chat/ChatService.cs | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DysonNetwork.Sphere/Chat/ChatRoomService.cs b/DysonNetwork.Sphere/Chat/ChatRoomService.cs index 14c742a..b604542 100644 --- a/DysonNetwork.Sphere/Chat/ChatRoomService.cs +++ b/DysonNetwork.Sphere/Chat/ChatRoomService.cs @@ -1,4 +1,3 @@ -using DysonNetwork.Sphere.Account; using DysonNetwork.Sphere.Storage; using Microsoft.EntityFrameworkCore; using NodaTime; diff --git a/DysonNetwork.Sphere/Chat/ChatService.cs b/DysonNetwork.Sphere/Chat/ChatService.cs index c4e1c82..0c89511 100644 --- a/DysonNetwork.Sphere/Chat/ChatService.cs +++ b/DysonNetwork.Sphere/Chat/ChatService.cs @@ -84,7 +84,8 @@ public class ChatService( ["images"] = message.Attachments .Where(a => a.MimeType != null && a.MimeType.StartsWith("image")) .Select(a => a.Id).ToList() - } + }, + Priority = 10, }; List accountsToNotify = [];