refactor: Disable custom image resizer for macOS and windows
This commit is contained in:
parent
8571c42ba4
commit
e8ee58d6d9
2 changed files with 6 additions and 1 deletions
|
|
@ -123,7 +123,9 @@ abstract class ClientManager {
|
||||||
// To make room emotes work
|
// To make room emotes work
|
||||||
'im.ponies.room_emotes',
|
'im.ponies.room_emotes',
|
||||||
},
|
},
|
||||||
customImageResizer: customImageResizer,
|
customImageResizer: PlatformInfos.supportsCustomImageResizer
|
||||||
|
? customImageResizer
|
||||||
|
: null,
|
||||||
logLevel: kReleaseMode ? Level.warning : Level.verbose,
|
logLevel: kReleaseMode ? Level.warning : Level.verbose,
|
||||||
database: await flutterMatrixSdkDatabaseBuilder(clientName),
|
database: await flutterMatrixSdkDatabaseBuilder(clientName),
|
||||||
supportedLoginTypes: {
|
supportedLoginTypes: {
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,9 @@ abstract class PlatformInfos {
|
||||||
static bool get supportsVideoPlayer =>
|
static bool get supportsVideoPlayer =>
|
||||||
!PlatformInfos.isWindows && !PlatformInfos.isLinux;
|
!PlatformInfos.isWindows && !PlatformInfos.isLinux;
|
||||||
|
|
||||||
|
static bool get supportsCustomImageResizer =>
|
||||||
|
PlatformInfos.isWeb || PlatformInfos.isMobile;
|
||||||
|
|
||||||
/// Web could also record in theory but currently only wav which is too large
|
/// Web could also record in theory but currently only wav which is too large
|
||||||
static bool get platformCanRecord => (isMobile || isMacOS || isWeb);
|
static bool get platformCanRecord => (isMobile || isMacOS || isWeb);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue