From f4b532e3579c05dfae2fca85000a0887f57ea312 Mon Sep 17 00:00:00 2001 From: otsmr Date: Sat, 8 Feb 2025 23:14:23 +0100 Subject: [PATCH] some fixes --- README.md | 3 --- lib/src/components/verified_shield.dart | 15 +++++++-------- lib/src/providers/api_provider.dart | 2 ++ lib/src/views/chats/chat_list_view.dart | 6 +++++- 4 files changed, 14 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index f58f345..0adbc9f 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,6 @@ Don't be lonely, get twonly! Send pictures to a friend in real time and be sure ## TODOS bevor first beta - Send a picture first to only one person -> Kamera button -- Context Menu -- Invitation codes - Settings - Real deployment aufsetzen, direkt auf Netcup? - Firebase Push Notification @@ -35,7 +33,6 @@ Don't be lonely, get twonly! Send pictures to a friend in real time and be sure - Send normal images via twonly - ## Pro Version - Send and receive unlimited pictures diff --git a/lib/src/components/verified_shield.dart b/lib/src/components/verified_shield.dart index b21fabc..275d244 100644 --- a/lib/src/components/verified_shield.dart +++ b/lib/src/components/verified_shield.dart @@ -1,7 +1,6 @@ import 'package:flutter/material.dart'; import 'package:font_awesome_flutter/font_awesome_flutter.dart'; import 'package:twonly/src/model/contacts_model.dart'; -import 'package:twonly/src/views/contact/contact_verify_view.dart'; class VerifiedShield extends StatelessWidget { final Contact contact; @@ -12,13 +11,13 @@ class VerifiedShield extends StatelessWidget { @override Widget build(BuildContext context) { return GestureDetector( - onTap: () { - Navigator.push(context, MaterialPageRoute( - builder: (context) { - return ContactVerifyView(contact); - }, - )); - }, + // onTap: () { + // Navigator.push(context, MaterialPageRoute( + // builder: (context) { + // return ContactVerifyView(contact); + // }, + // )); + // }, child: Tooltip( message: contact.verified ? "You verified this contact" diff --git a/lib/src/providers/api_provider.dart b/lib/src/providers/api_provider.dart index 317a31a..78534c3 100644 --- a/lib/src/providers/api_provider.dart +++ b/lib/src/providers/api_provider.dart @@ -71,6 +71,8 @@ class ApiProvider { reconnectionTimer!.cancel(); } + isAuthenticated = false; + log.info("Trying to connect to the backend $apiUrl!"); if (await _connectTo(apiUrl)) { await onConnected(); diff --git a/lib/src/views/chats/chat_list_view.dart b/lib/src/views/chats/chat_list_view.dart index 1640c1e..2f0e6ad 100644 --- a/lib/src/views/chats/chat_list_view.dart +++ b/lib/src/views/chats/chat_list_view.dart @@ -202,7 +202,11 @@ class _UserListItem extends State { ), if (flameCounter > 0) FlameCounterWidget( - widget.user, flameCounter, widget.maxTotalMediaCounter), + widget.user, + flameCounter, + widget.maxTotalMediaCounter, + prefix: true, + ), ], ), leading: InitialsAvatar(displayName: widget.user.displayName),