add message pinning
All checks were successful
Server Build / publish (push) Successful in 29s
Voice Build / publish (push) Successful in 25s

This commit is contained in:
olcxja 2026-07-25 01:06:59 +02:00
commit 0a0e79180a
3 changed files with 161 additions and 0 deletions

View file

@ -753,6 +753,12 @@ public static async Task Auth(HttpContext context, Func<Task> next, IQueryCollec
await Room.Requests.DmMessageDelete(id, serializedBody.string2)
, password));
break;
case "dm/message/pin/toggle":
await context.Response.WriteAsync(
Encryption.Encryption.EncryptString(
await Room.Requests.DmMessagePinToggle(id, serializedBody.string2)
, password));
break;
case "dm/message/react/add":
await context.Response.WriteAsync(
Encryption.Encryption.EncryptString(
@ -774,6 +780,12 @@ public static async Task Auth(HttpContext context, Func<Task> next, IQueryCollec
await context.Response.WriteAsync(Encryption.Encryption.EncryptString(await Room.Requests.GetDmMessages(id, msgGet.string1, msgGet.string3, msgGet.string2), password));
break;
}
case "dm/messages/pinned":
await context.Response.WriteAsync(
Encryption.Encryption.EncryptString(
await Room.Requests.DmMessageGetPinned(id, serializedBody.string2)
, password));
break;
case "dm/read":
{
Universal2String readGet = JsonSerializer.Deserialize(