Merge pull request #2064 from famedly/krille/make-dehydrated-device-name-configurable
feat: Make dehydrated device name configurable
This commit is contained in:
commit
fab174c76d
|
|
@ -253,7 +253,7 @@ class OlmManager {
|
||||||
|
|
||||||
await client.uploadDehydratedDevice(
|
await client.uploadDehydratedDevice(
|
||||||
deviceId: ourDeviceId!,
|
deviceId: ourDeviceId!,
|
||||||
initialDeviceDisplayName: 'Dehydrated Device',
|
initialDeviceDisplayName: client.dehydratedDeviceDisplayName,
|
||||||
deviceKeys:
|
deviceKeys:
|
||||||
uploadDeviceKeys ? MatrixDeviceKeys.fromJson(deviceKeys) : null,
|
uploadDeviceKeys ? MatrixDeviceKeys.fromJson(deviceKeys) : null,
|
||||||
oneTimeKeys: signedOneTimeKeys,
|
oneTimeKeys: signedOneTimeKeys,
|
||||||
|
|
|
||||||
|
|
@ -239,6 +239,7 @@ class Client extends MatrixApi {
|
||||||
/// When sending a formatted message, converting linebreaks in markdown to
|
/// When sending a formatted message, converting linebreaks in markdown to
|
||||||
/// <br/> tags:
|
/// <br/> tags:
|
||||||
this.convertLinebreaksInFormatting = true,
|
this.convertLinebreaksInFormatting = true,
|
||||||
|
this.dehydratedDeviceDisplayName = 'Dehydrated Device',
|
||||||
}) : syncFilter = syncFilter ??
|
}) : syncFilter = syncFilter ??
|
||||||
Filter(
|
Filter(
|
||||||
room: RoomFilter(
|
room: RoomFilter(
|
||||||
|
|
@ -376,6 +377,8 @@ class Client extends MatrixApi {
|
||||||
|
|
||||||
bool enableDehydratedDevices = false;
|
bool enableDehydratedDevices = false;
|
||||||
|
|
||||||
|
final String dehydratedDeviceDisplayName;
|
||||||
|
|
||||||
/// Whether read receipts are sent as public receipts by default or just as private receipts.
|
/// Whether read receipts are sent as public receipts by default or just as private receipts.
|
||||||
bool receiptsPublicByDefault = true;
|
bool receiptsPublicByDefault = true;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue