bugfixes from initial android testing
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
Sarah Jamie Lewis 2021-04-26 16:00:23 -07:00
parent 8ced262d8f
commit 75f03c2830
5 changed files with 5 additions and 4 deletions

View File

@ -36,4 +36,5 @@
android:name="flutterEmbedding"
android:value="2" />
</application>
</manifest>

View File

@ -163,7 +163,7 @@ class MainActivity: FlutterActivity() {
"ImportBundle" -> {
val profile = (call.argument("ProfileOnion") as? String) ?: "";
val bundle = (call.argument("bundle") as? String) ?: "";
Cwtch.blockContact(profile, bundle);
Cwtch.importBundle(profile, bundle);
}
"SetGroupAttribute" -> {
val profile = (call.argument("ProfileOnion") as? String) ?: "";

Binary file not shown.

View File

@ -224,7 +224,7 @@ class ContactInfoState extends ChangeNotifier {
int _totalMessages = 0;
DateTime _lastMessageTime;
// todo: a nicer way to mdoel contats, groups and other "entities"
// todo: a nicer way to model contacts, groups and other "entities"
bool _isGroup;
String _server;
@ -321,7 +321,7 @@ class ContactInfoState extends ChangeNotifier {
get server => this._server;
bool isOnline() {
if (this.isGroup) {
if (this.isGroup == true) {
return this.status == "Synced";
} else {
return this.status == "Authenticated";

View File

@ -231,7 +231,7 @@ class _AddContactViewState extends State<AddContactView> {
}
if (globalErrorHandler.importBundleError) {
return AppLocalizations.of(context).invalidImportString;
} else if (globalErrorHandler.explicitAddContactSuccess) {}
} else if (globalErrorHandler.importBundleSuccess) {}
return null;
},
onChanged: (String importBundle) async {