Service: Only sent item changes in item updates

This commit is contained in:
Carl Philipp Klemm 2026-04-13 14:09:34 +02:00
parent cd64cbe08e
commit b0792d32db
2 changed files with 2 additions and 2 deletions

View file

@ -107,7 +107,7 @@ void Server::itemUpdated(ItemUpdateRequest update)
{
QJsonArray items;
QJsonObject itemjson;
update.payload.store(itemjson);
update.payload.storeWithChanges(itemjson, update.changes);
items.append(itemjson);
QJsonObject json = createMessage("ItemUpdate", items);
json["FullList"] = false;

View file

@ -120,7 +120,7 @@ void TcpClient::itemUpdated(ItemUpdateRequest update)
{
QJsonArray items;
QJsonObject itemjson;
update.payload.store(itemjson);
update.payload.storeWithChanges(itemjson, update.changes);
items.append(itemjson);
QJsonObject json = createMessage("ItemUpdate", items);
json["FullList"] = false;