Changeset View
Changeset View
Standalone View
Standalone View
src/client/actions/ephemeral.cpp
| Show All 38 Lines | ClientResult processResponse(ClientModel m, SetTypingResponse r) | ||||
| return { std::move(m), lager::noop }; | return { std::move(m), lager::noop }; | ||||
| } | } | ||||
| ClientResult updateClient(ClientModel m, PostReceiptAction a) | ClientResult updateClient(ClientModel m, PostReceiptAction a) | ||||
| { | { | ||||
| auto job = m.job<PostReceiptJob>().make( | auto job = m.job<PostReceiptJob>().make( | ||||
| a.roomId, | a.roomId, | ||||
| /* receiptType = */ "m.read"s, | /* receiptType = */ "m.read"s, | ||||
| a.eventId) | a.eventId, | ||||
| /* receipt = */ json::object()) | |||||
| .withData(json{{"roomId", a.roomId}}); | .withData(json{{"roomId", a.roomId}}); | ||||
| m.addJob(std::move(job)); | m.addJob(std::move(job)); | ||||
| return { std::move(m), lager::noop }; | return { std::move(m), lager::noop }; | ||||
| } | } | ||||
| ClientResult processResponse(ClientModel m, PostReceiptResponse r) | ClientResult processResponse(ClientModel m, PostReceiptResponse r) | ||||
| Show All 39 Lines | |||||