Merge remote-tracking branch 'upstream/main' into yiffed

This commit is contained in:
Inex Code 2020-10-22 08:07:28 +03:00
commit 687c0aba1d
6 changed files with 39 additions and 22 deletions

View file

@ -6,13 +6,18 @@
- Add swipe to reply - Thanks @inexcode - Add swipe to reply - Thanks @inexcode
- Initial support for compiling to desktop - Initial support for compiling to desktop
- Initial snap metadata - Thanks @RAOF_47 - Initial snap metadata - Thanks @RAOF_47
- Add latex parsing as per [MSC2191](https://github.com/matrix-org/matrix-doc/pull/2191) - `$tex$` for inline and `$$` for blocks
### Changes ### Changes
- Re-scale images in a separate isolate to prevent the UI from freezing - Re-scale images in a separate isolate to prevent the UI from freezing
- URLs without https:// now linkify - URLs without https:// now linkify
- Parse all URIs, not just URLs
- emails will linkify now
- Make sure login to dendrite is working properly
### Fixes ### Fixes
- Fix amoled / theme settings not always saving properly - Fix amoled / theme settings not always saving properly
- Show device name in account information correctly - Show device name in account information correctly
- Fix tapping on aliases / room pills not always working - Fix tapping on aliases / room pills not always working
- Link clicking in web not always working
# Version 0.19.0 - 2020-09-21 # Version 0.19.0 - 2020-09-21
### Features ### Features

View file

@ -30,9 +30,9 @@ class Avatar extends StatelessWidget {
); );
final src = thumbnail; final src = thumbnail;
var fallbackLetters = '@'; var fallbackLetters = '@';
if ((name?.length ?? 0) >= 2) { if ((name?.runes?.length ?? 0) >= 2) {
fallbackLetters = String.fromCharCodes(name.runes, 0, 2); fallbackLetters = String.fromCharCodes(name.runes, 0, 2);
} else if ((name?.length ?? 0) == 1) { } else if ((name?.runes?.length ?? 0) == 1) {
fallbackLetters = name; fallbackLetters = name;
} }
final textWidget = Center( final textWidget = Center(

View file

@ -17,8 +17,8 @@ import 'platform_infos.dart';
Future<LocalStorage> getLocalStorage() async { Future<LocalStorage> getLocalStorage() async {
final directory = PlatformInfos.isBetaDesktop final directory = PlatformInfos.isBetaDesktop
? await getApplicationSupportDirectory() ? await getApplicationSupportDirectory()
: await getApplicationDocumentsDirectory(); : (PlatformInfos.isWeb ? null : await getApplicationDocumentsDirectory());
final localStorage = LocalStorage('LocalStorage', directory.path); final localStorage = LocalStorage('LocalStorage', directory?.path);
await localStorage.ready; await localStorage.ready;
return localStorage; return localStorage;
} }

View file

@ -85,6 +85,13 @@ packages:
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.0.0" version: "1.0.0"
catex:
dependency: transitive
description:
name: catex
url: "https://pub.dartlang.org"
source: hosted
version: "0.0.1+6"
characters: characters:
dependency: transitive dependency: transitive
description: description:
@ -327,7 +334,7 @@ packages:
name: flutter_matrix_html name: flutter_matrix_html
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.1.7" version: "0.1.9"
flutter_olm: flutter_olm:
dependency: "direct main" dependency: "direct main"
description: description:
@ -519,7 +526,7 @@ packages:
name: matrix_link_text name: matrix_link_text
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.2.0" version: "0.3.1"
meta: meta:
dependency: transitive dependency: transitive
description: description:

View file

@ -37,7 +37,8 @@ dependencies:
cached_network_image: ^2.3.3 cached_network_image: ^2.3.3
firebase_messaging: ^7.0.2 firebase_messaging: ^7.0.2
flutter_local_notifications: ^2.0.0+1 flutter_local_notifications: ^2.0.0+1
matrix_link_text: ^0.2.0 # desktop_notifications: ^0.0.0-dev.4 // Currently blocked by: https://github.com/canonical/desktop_notifications.dart/issues/5
matrix_link_text: ^0.3.1
path_provider: ^1.5.1 path_provider: ^1.5.1
webview_flutter: ^0.3.19+9 webview_flutter: ^0.3.19+9
share: ^0.6.3+5 share: ^0.6.3+5
@ -51,7 +52,7 @@ dependencies:
open_file: ^3.0.1 open_file: ^3.0.1
mime_type: ^0.3.0 mime_type: ^0.3.0
bot_toast: ^3.0.0 bot_toast: ^3.0.0
flutter_matrix_html: ^0.1.7 flutter_matrix_html: ^0.1.9
moor: ^3.3.1 moor: ^3.3.1
sqlite3_flutter_libs: ^0.2.0 sqlite3_flutter_libs: ^0.2.0
sqlite3: ^0.1.4 sqlite3: ^0.1.4

View file

@ -1,6 +1,6 @@
name: fluffychat name: fluffychat
base: core18 # the base snap is the execution environment for this snap base: core18
version: git # just for humans, typically '1.2+git' or '1.3.2' version: script
summary: Open. Nonprofit. Cute ♥ summary: Open. Nonprofit. Cute ♥
description: | description: |
FluffyChat - Chat with your friends FluffyChat - Chat with your friends
@ -22,24 +22,28 @@ description: |
Website: http://fluffy.chat Website: http://fluffy.chat
Microblog: https://metalhead.club/@krille Microblog: https://metalhead.club/@krille
grade: devel # must be 'stable' to release into candidate/stable channels grade: devel
confinement: strict # use 'strict' once you have the right plugs and slots icon: assets/logo.png
confinement: devmode
parts: parts:
olm: olm: # FIXME
plugin: cmake
source: https://gitlab.matrix.org/matrix-org/olm.git source: https://gitlab.matrix.org/matrix-org/olm.git
source-type: git source-type: git
source-tag: 3.2.1 source-tag: 3.2.1
plugin: cmake
build-packages:
- build-essential
override-build: |
cd /root/parts/olm/src
cmake . -Bbuild
cmake --build build
fluffychat: fluffychat:
plugin: flutter after: [olm]
source: . plugin: dump
flutter-target: lib/main.dart source: ./build/linux/release/bundle
stage-packages: stage-packages:
- libsqlite3-0 - libsqlite3-dev
override-prime: |
snapcraftctl prime
ln -sf libsqlite3.so.0 ${SNAPCRAFT_PRIME}/usr/lib/x86_64-linux-gnu/libsqlite3.so
slots: slots:
dbus-svc: dbus-svc:
@ -51,7 +55,7 @@ apps:
fluffychat: fluffychat:
command: fluffychat command: fluffychat
extensions: extensions:
- flutter-dev - gnome-3-28
plugs: plugs:
- network - network
- home - home