Changeset View
Changeset View
Standalone View
Standalone View
src/client/client-model.hpp
| Show First 20 Lines • Show All 561 Lines • ▼ Show 20 Lines | struct PrepareForSharingRoomKeyAction | ||||
| UserIdToDeviceIdMap devices; | UserIdToDeviceIdMap devices; | ||||
| /// The key event to encrypt. | /// The key event to encrypt. | ||||
| Event e; | Event e; | ||||
| /// The random data for the encryption. Must be of at least | /// The random data for the encryption. Must be of at least | ||||
| /// size `randomSize(devices)`. | /// size `randomSize(devices)`. | ||||
| RandomData random; | RandomData random; | ||||
| }; | }; | ||||
| /** | |||||
| * Import keys from key backup file. | |||||
| * | |||||
| * On success, the reducer returns data with `imported` property | |||||
| * being the number of keys imported. On failure, it returns data with | |||||
| * `errorCode` and `error` properties set to the error in the process. | |||||
| */ | |||||
| struct ImportFromKeyBackupFileAction | |||||
| { | |||||
| /// The content of the key backup file. | |||||
| std::string fileContent; | |||||
| /// The password. | |||||
| std::string password; | |||||
| }; | |||||
| struct GetUserProfileAction | struct GetUserProfileAction | ||||
| { | { | ||||
| std::string userId; | std::string userId; | ||||
| }; | }; | ||||
| struct SetAvatarUrlAction | struct SetAvatarUrlAction | ||||
| { | { | ||||
| std::optional<std::string> avatarUrl; | std::optional<std::string> avatarUrl; | ||||
| ▲ Show 20 Lines • Show All 83 Lines • Show Last 20 Lines | |||||