refactor: Update SDK and enable login with email and phone

This commit is contained in:
Christian Pauly 2021-03-09 19:39:25 +01:00
commit 39421fae32
8 changed files with 47 additions and 12 deletions

View file

@ -79,7 +79,7 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
File wallpaper;
void _initWithStore() async {
void _initWithStore() {
try {
client.init();
} catch (e, s) {
@ -344,7 +344,7 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
.where((e) =>
e.type == EventUpdateType.timeline &&
[EventTypes.Message, EventTypes.Sticker, EventTypes.Encrypted]
.contains(e.eventType) &&
.contains(e.content['type']) &&
e.content['sender'] != client.userID)
.listen(_showLocalNotification);
});