57
58
59
|
void handleMessage(String type, dynamic data) {
// EnvironmentConfig.debugLog("NewEvent $type $data");
switch (type) { |
Dart
Last indexed 2024-04-16 18:37:31 +00:00
37
38
39
|
appError = error;
EnvironmentConfig.debugLog("App Error: $appError");
notifyListeners(); |
Dart
Last indexed 2024-04-05 22:31:30 +00:00
212
213
214
|
} catch (e) {
EnvironmentConfig.debugLog("Failed to create LinuxNotificationManager. Switching off notifications.");
} |
Dart
Last indexed 2024-02-14 04:06:40 +00:00
136
137
138
|
} catch (e, stacktrace) {
EnvironmentConfig.debugLog("Error: Getting indexed messages $start to ${start + amount} failed parsing: " + e.toString() + " " + stacktrace.toString());
} finally { |
Dart
Last indexed 2024-02-27 21:14:00 +00:00
19
20
21
|
Widget build(BuildContext context) {
EnvironmentConfig.debugLog("building splash screen...");
var cwtch = Provider.of<FlwtchState>(context, listen: false).cwtch; |
Dart
Last indexed 2024-04-16 18:37:31 +00:00
70
71
72
|
Future<dynamic> shutdownDirect(MethodCall call) async {
EnvironmentConfig.debugLog("$call");
await cwtch.Shutdown(); |
Dart
Last indexed 2024-04-16 18:37:31 +00:00
52
53
54
|
// Uncomment if necessary.
// EnvironmentConfig.debugLog("$sharedFiles " + sharedFiles[index].toString());
return SwitchListTile( |
Dart
Last indexed 2024-02-13 21:53:16 +00:00
42
43
44
|
info.addAll({"appInfoPlatform.codec": appInfoPlatform.codec.toString()});
EnvironmentConfig.debugLog("getting foreground service info...");
appInfoPlatform.invokeMapMethod('getForegroundServiceInfo').then((foregroundServiceInfoMap) { |
Dart
Last indexed 2024-02-27 03:49:25 +00:00
54
55
56
|
if (otherGroups != null && otherGroups.isNotEmpty) {
EnvironmentConfig.debugLog("sharing antispam tickets to new group. FIXME: in Cwtch 1.14");
var antispamTickets = otherGroups[0].antispamTickets; |
Dart
Last indexed 2024-02-14 04:06:40 +00:00
275
276
277
|
void dispose() {
EnvironmentConfig.debugLog("tearing down cwtch FFI isolate");
library.close(); |
Dart
Last indexed 2024-02-27 03:49:25 +00:00
52
53
54
|
setState(() {
EnvironmentConfig.debugLog("setting language: $newValue");
settings.switchLocaleByCode(newValue!); |
Dart
Last indexed 2024-04-05 22:31:30 +00:00
63
64
65
|
if (Provider.of<MessageMetadata>(context).senderHandle == "") {
EnvironmentConfig.debugLog("error, cache returned malformed message. This is likely a programming bug.");
return MessageLoadingBubble(); |
Dart
Last indexed 2024-02-27 21:14:00 +00:00
503
504
505
|
EnvironmentConfig.debugLog("waiting for change password response");
Future.delayed(const Duration(milliseconds: 500), () { |
Dart
Last indexed 2024-04-05 22:31:30 +00:00
262
263
264
|
// This requires a change to the backend to confirm submission of an inFlightMessage, which will be implemented in #664
EnvironmentConfig.debugLog("Conflicting message counts: $newCount ${profileContact.totalMessages}");
newCount = max(newCount, profileContact.totalMessages); |
Dart
Last indexed 2024-02-14 04:06:40 +00:00
304
305
306
|
file = File(selectedFileName);
EnvironmentConfig.debugLog("saving to " + file.path);
var manifestPath = file.path + ".manifest"; |
Dart
Last indexed 2024-02-14 04:06:40 +00:00
50
51
52
|
Provider.of<AppState>(context, listen: false).initialScrollIndex = messageIndex;
EnvironmentConfig.debugLog("Looked up index $messageIndex");
} |
Dart
Last indexed 2024-04-05 22:31:30 +00:00
375
376
377
|
} catch (e) {
EnvironmentConfig.debugLog("Exception: reply to message could not be found: " + e.toString());
} |
Dart
Last indexed 2024-04-05 22:31:30 +00:00