Skip to content

Commit

Permalink
added comment etc
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalxl committed Dec 2, 2022
1 parent 1593ba5 commit b4e2a78
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/event_ds.dart
Original file line number Diff line number Diff line change
Expand Up @@ -911,11 +911,9 @@ class Event {
newEventData.isNotification = true;
return Event(json[0] as String, json[1] as String, newEventData, [relay], d, fromFile );
} on Exception catch(e) {
if( gDebug> 0) {
print("Could not create event. $e");
print("problem str: $d\n");
if( gDebug > 0) {
print("Could not create event. $e\nproblem str: $d\n");
}
//print("Caught an exception in Event.fromJson");
throw e;
}
}
Expand Down Expand Up @@ -1537,7 +1535,10 @@ String myEncryptRaw( String privateString,
return outputPlainText;
}


/**
* Read events from file. a flag is set for such events, so that when writing events back, the ones read from file aren't added, and only
* new events from relays are written to file.
*/
Set<Event> readEventsFromFile(String filename) {
Set<Event> events = {};
final File file = File(filename);
Expand Down

0 comments on commit b4e2a78

Please sign in to comment.