Changeset View
Changeset View
Standalone View
Standalone View
src/client/client.cpp
| Show First 20 Lines • Show All 187 Lines • ▼ Show 20 Lines | #endif | ||||
| auto Client::shouldSync() const -> lager::reader<bool> { | auto Client::shouldSync() const -> lager::reader<bool> { | ||||
| return this->clientCursor()[&ClientModel::shouldSync]; | return this->clientCursor()[&ClientModel::shouldSync]; | ||||
| } | } | ||||
| auto Client::logout() const | auto Client::logout() const | ||||
| -> PromiseT | -> PromiseT | ||||
| { | { | ||||
| return stopSyncing().then([ctx=m_ctx] (auto stat) { | return stopSyncing().then([ctx=m_ctx] ([[maybe_unused]] auto stat) { | ||||
| return ctx.dispatch(HardLogoutAction{}); | return ctx.dispatch(HardLogoutAction{}); | ||||
| }); | }); | ||||
| } | } | ||||
| auto Client::autoDiscover(std::string userId) const | auto Client::autoDiscover(std::string userId) const | ||||
| -> PromiseT | -> PromiseT | ||||
| { | { | ||||
| return m_ctx.dispatch(GetWellknownAction{userId}) | return m_ctx.dispatch(GetWellknownAction{userId}) | ||||
| ▲ Show 20 Lines • Show All 568 Lines • Show Last 20 Lines | |||||