1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 16:18:12 +00:00

Notification: Give a unique internal ID

This will allow us to later query the notifications from a connection
and safely update it without exposing it to any other applications, as
it is session based.
This commit is contained in:
Nick Johnson 2021-03-11 13:59:37 -06:00 committed by Andreas Kling
parent 7351c77a42
commit a437430294
3 changed files with 13 additions and 8 deletions

View file

@ -55,7 +55,7 @@ OwnPtr<Messages::NotificationServer::GreetResponse> ClientConnection::handle(con
OwnPtr<Messages::NotificationServer::ShowNotificationResponse> ClientConnection::handle(const Messages::NotificationServer::ShowNotification& message)
{
auto window = NotificationWindow::construct(message.text(), message.title(), message.icon());
auto window = NotificationWindow::construct(client_id(), message.text(), message.title(), message.icon());
window->show();
return make<Messages::NotificationServer::ShowNotificationResponse>();
}