api cleanup, decline message on notification decline

This commit is contained in:
choco
2025-10-20 21:16:30 +02:00
parent 4f5ef8ff4b
commit 147baa4c1b
3 changed files with 6 additions and 4 deletions

View File

@@ -220,9 +220,13 @@ public sealed class PairRequestService : DisposableMediatorSubscriberBase
});
}
public void DeclinePairRequest(string hashedCid)
public void DeclinePairRequest(string hashedCid, string displayName)
{
RemoveRequest(hashedCid);
Mediator.Publish(new NotificationMessage("Pair request declined",
"Declined " + displayName + "'s pending pair request.",
NotificationType.Info,
TimeSpan.FromSeconds(3)));
Logger.LogDebug("Declined pair request from {HashedCid}", hashedCid);
}