add "dm/messages/get" request
This commit is contained in:
parent
442add0ee4
commit
bb57c26dea
3 changed files with 60 additions and 7 deletions
|
|
@ -631,11 +631,17 @@ public class Requests
|
|||
, password));
|
||||
break;
|
||||
case "user/dm/create":
|
||||
await context.Response.WriteAsync(
|
||||
Encryption.Encryption.EncryptString(
|
||||
await Room.Requests.DmCreate(id, serializedBody.string2)
|
||||
, password));
|
||||
await context.Response.WriteAsync(Encryption.Encryption.EncryptString(await Room.Requests.DmCreate(id, serializedBody.string2), password));
|
||||
break;
|
||||
case "dm/messages/get":
|
||||
{
|
||||
Universal3String msgGet = JsonSerializer.Deserialize(
|
||||
serializedBody.string2,
|
||||
AppJsonSerializerContext.Default.Universal3String
|
||||
);
|
||||
await context.Response.WriteAsync(Encryption.Encryption.EncryptString(await Room.Requests.GetDmMessages(id, msgGet.string1, msgGet.string3, msgGet.string2), password));
|
||||
break;
|
||||
}
|
||||
case "dm/key/get":
|
||||
await context.Response.WriteAsync(
|
||||
Encryption.Encryption.EncryptString(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue