bugfixes from initial android testing
This commit is contained in:
parent
8ced262d8f
commit
75f03c2830
|
@ -36,4 +36,5 @@
|
|||
android:name="flutterEmbedding"
|
||||
android:value="2" />
|
||||
</application>
|
||||
|
||||
</manifest>
|
||||
|
|
|
@ -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.
|
@ -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";
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue