75 Commits

Author SHA1 Message Date
Vishal
b9ac5538b3 added analysis_options.yaml and ran lint and applied changes 2024-03-31 17:14:01 +05:30
Vishal
87b018face await ready state of socket to fix exception issue #77 2023-04-23 18:36:53 +05:30
Vishal
43f2fab1b4 no functional change 2022-12-30 09:25:23 +05:30
Vishal
6e05556513 latest shown for only 6 hours
* notifications shown for minimum 24 hours
* other minor improvements related to qr code, tree ui in menu function,

* added :- with ln qr so qr is printed on next line, otherwise it wasn't due to some whitespace trim

* --width will override LN qr width change
2022-12-25 20:25:08 +05:30
Vishal
c37783acee did not delete old entries, rather just replaced the relay with new variable
to avoid crashes that i was seeing. with this change, no crash seen in a while...
2022-12-24 21:45:49 +05:30
Vishal
2e48c07e93 changed relay set used 2022-12-24 13:12:16 +05:30
Vishal
9efa5a60f2 improved fetching to get better response from relays
reduced days fetched.

combined calls.
2022-12-24 11:22:57 +05:30
Vishal
0b1bd5d9be getting only 200 maximum contacts for any user
reduced calls made. combined user fetch and mention fetch to one request.
2022-12-24 01:35:33 +05:30
Vishal
a802e7bd1f reduced items fetched to reduce cpu use etc
fixed user count in relay which was undone few commits ago
2022-12-23 13:43:39 +05:30
Vishal
91ddb3911b improved fetching or requests
added zbd relay and more
added more default initial users to fetch
2022-12-22 06:58:02 +05:30
radixrat
e36aa31608 convert relays urls to sets, regex for wss:// or ws:// 2022-12-20 15:59:15 -05:00
Vishal
80c780cdd8 code improved for getting events together
no function change
2022-12-01 23:39:53 +05:30
Vishal
7c065f18e5 fetched 14x only after receiving an invite 2022-11-29 11:02:31 +05:30
Vishal
3956e95beb removed debug printfs and whitespac etc 2022-11-28 16:26:43 +05:30
Vishal
fe69a6503a more code moved to utils.dart 2022-11-28 15:42:25 +05:30
Vishal
f1ab310630 added utils.dart
moved string related and other such code to utils.dart
2022-11-28 12:09:37 +05:30
Vishal
494380b5e9 improved code related to public channel
was crashing on entering channel based on channel id
2022-11-27 17:49:51 +05:30
Vishal
32bc7d2bc0 used kind 104 to send shared secret for kind 14x
also internally improved logic that encrypted channels internal structures are created by first looking at kind 104  (secret kind id)

mentioned version 0.1.9-beta
2022-11-25 19:26:12 +05:30
Vishal
0ea7a6b05e added unused or skeletal code to eventually do sig check for incoming events 2022-11-09 23:30:18 +05:30
Vishal
b37b903261 added mySign function 2022-11-04 22:04:15 +05:30
Vishal
7372cd4ea8 added root/reply tag to kind 1 posts
added test case to read event file. Uploaded that file too.

returned eventID if parent does not exist ( which was a bug)
2022-10-29 11:01:26 +05:30
Vishal
57dfc52521 fixed crash which showed when contact list went above 100 2022-10-12 02:48:15 +05:30
Vishal
4d246f2dd2 put debug messages in debug 2022-09-17 13:26:27 +05:30
Vishal
5f9516d22d fixed name printing a bit
changed notification delay time a bit.
2022-09-13 21:14:21 +05:30
Vishal
7595f072d9 no real change; comments etc 2022-09-12 11:58:48 +05:30
Vishal
62dbe3de2e got dummy events, and showed likes as notification at start along with replies 2022-09-10 04:02:49 +05:30
Vishal
e16fb421f4 fetched default accounts in first step itself 2022-09-09 14:32:56 +05:30
Vishal
c7153872d9 simplified display in sn. showed notifications in inbox at startup if present. 2022-09-09 03:31:23 +05:30
Vishal
11972d5328 combined ptags with contact req, so now its 30% faster initially with 2 future delays only
also got req for mentions using #p so any anon account that replies to user will show up
2022-09-07 02:54:01 +05:30
Vishal
8dafca67cd now getting kind 0, 3 event too
added + for top event
2022-09-07 02:10:32 +05:30
Vishal
d0ecb4ff0b fixed issues introduced in last few commits
Where Tree was formed first, and then lot events were being inserted into it. This is not supported yet. So now events are collected initially, and then Tree is formed.

also fixed issue that new kind 0 events were not getting handled, which result that lists were not printing names.
2022-09-03 03:29:36 +05:30
Vishal
20f5295e54 fixed nonce tag. sent event to multiple relays. 2022-08-31 04:24:37 +05:30
Vishal
1137068f68 added basic page support for channels with too many messages. 15 msg per page now are displayed. 2022-08-30 23:47:59 +05:30
Vishal
0cd7105548 added difficulty option with max diff of 24 bit 2022-08-30 19:09:56 +05:30
Vishal
a4e687d806 added another treeSelector so that only events with likes etc are printed. minor refactoring. 2022-08-29 19:08:00 +05:30
Vishal
38ae89a3b2 fixes tests, added logging library, lot of other code refactoring. 2022-08-29 04:59:28 +05:30
Vishal
cb24f7e2bf added since in request to relays, for 120 days before now.
comments created in last 120 days are requested only.
2022-08-28 06:38:38 +05:30
Vishal
01b5b82228 used unique names for subscription strings, used set of events rather than list, and called multiple relays for third call in main 2022-08-28 05:33:01 +05:30
Vishal
a09c046787 Added color option and made file as default of name all_nostr_events.txt which can be disabled with --disable-file 2022-08-27 13:28:36 +05:30
vishalxl
6515958cd8 fixed json decode issue. added more profile info including distance. added search by client 2022-08-26 12:41:30 +05:30
vishalxl
6057e16005 invoked more relays. NIP not followed yet tho. Printed info for application through menu 2022-08-26 00:05:07 +05:30
vishalxl
8264e9acb0 user can now add a contact, kind 3 event is broadcast in that case 2022-08-25 18:33:29 +05:30
vishalxl
94c21342d1 improved isLatin function by considering whitespace too 2022-08-25 02:30:05 +05:30
vishalxl
10bc0d187b channel menu and comments; contact update halfway done; created settings.dart file with all settings 2022-08-24 22:07:03 +05:30
vishalxl
ba1edf7dbf escaped " so it can be written in comment 2022-08-22 04:44:29 +05:30
vishalxl
57ef23d232 no functional change 2022-08-21 00:23:53 +05:30
vishalxl
d4cc9fbcae added support for reading and writing events from/to a file with command line argument. Display and other improvements: printed user logged in for information. 2022-08-21 00:11:50 +05:30
vishalxl
2c37201185 added method to write events in file. not used. 2022-08-20 00:53:33 +05:30
vishalxl
c2fb18f4bd ignored duplicate events at relay itself by adding a set of id's in relays. Improved get multiple user events by breaking down request for multiple authors into smaller requests 2022-08-19 23:01:22 +05:30
vishalxl
6ee59e0e9a printed number of trees displayed. added option to change number of days dispayed 2022-08-19 11:51:46 +05:30