157 Commits

Author SHA1 Message Date
Vishal
151a00c22a added flag userRelevant to improve event printing at end. now every event that's printed for user gets saved at end 2024-04-21 09:38:43 +05:30
Vishal
bda7464595 Added support for nsec/npub in command line invocation as pubkey and pivate keys. expanded nostr: type mentions for user and notes 2024-04-06 21:23:17 +05:30
Vishal
b9ac5538b3 added analysis_options.yaml and ran lint and applied changes 2024-03-31 17:14:01 +05:30
Vishal
7a3a2247c4 changed relays. saved group events too at end. changed relay variable 2024-03-17 22:25:17 +05:30
Vishal
57dd6a2908 reduced relays, and avoided using set2 initially
to avoid the handshake exception bug
2023-01-29 03:49:20 +05:30
Vishal
00125a3b6b fix: fetched follows info.
added user to 2->1 menu option too.
2023-01-17 14:01:36 +05:30
Vishal
2e259cb3ac changed version to 0.3.4; improved notifications tree print a bit 2022-12-31 14:31:36 +05:30
Vishal
b8847cc465 minor tweaks in days fetched for others and channel events
+1
2022-12-28 01:37:10 +05:30
Vishal
27ce32bd1b displayed lud16 if people have it in their profile page 2022-12-26 20:09:55 +05:30
Vishal
9abe554bd5 Improved menu options 2-5 and 2-6
and used the same functions ( which now accept array of pubkeys)
2022-12-26 15:28:24 +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
d79b14ebee improved ln qr generation. added --qrln flag 2022-12-25 13:51:28 +05:30
Vishal
c038ab4fa4 not closing connection to avoid crash
which i haven't seen in a couple runs now
2022-12-25 03:47:49 +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
abb59d88e2 reset relays after initial requests
and then got all the latest events made in last 2 hours.

max contacts fetched set to 500
2022-12-24 16:11:19 +05:30
Vishal
2e48c07e93 changed relay set used 2022-12-24 13:12:16 +05:30
Vishal
f913f97ed8 added two more relays, reduced call for default pubkeys 2022-12-24 12:06:44 +05:30
Vishal
05f884e2fb got enc channels too at start
this resolves the issue seen with enc channel events not being received.

undid previous commit about enc group fix, which wasn't a fix..
2022-12-24 11:44:26 +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
1d66a25cb0 changed version to 0.2.8 2022-12-24 01:44:20 +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
91fa45a8c6 reduced events fetched
.. to about 30k for my own username.

This reduces connection which seems to improve relay response.

added file user.dart with mostly old code.
2022-12-23 20:08:41 +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
b883231223 added coinos relay
and improved test servers file
2022-12-22 13:28:57 +05:30
Vishal
57500877b9 fixed a minor issue with previous commit
delay check was being done wrong at starting , and increased channel events fetch to 2 days
2022-12-22 07:45:11 +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
Vishal
08180c00a8 printed relay list in every case at start 2022-12-21 11:11:17 +05:30
radixrat
33d59fc097 make regex specific to s optional 2022-12-20 16:03:03 -05:00
radixrat
e36aa31608 convert relays urls to sets, regex for wss:// or ws:// 2022-12-20 15:59:15 -05:00
radixrat
e93396f636 accept user relay list as the main relays
provide feedback when no valid relays passed

add comma
2022-12-20 15:23:09 -05:00
radixrat
d30637dcc0 allow multiple relays to be added to the relay list on start 2022-12-20 14:24:30 -05:00
Vishal
0321e723e7 fetched reacted-to events not in store
also added location flag but did not use it.

improved function structure in tree.dart
2022-12-04 13:44:28 +05:30
Vishal
80c780cdd8 code improved for getting events together
no function change
2022-12-01 23:39:53 +05:30
Vishal
c692f13bd3 increased ininital delay and improved print ui for enc groups 2022-11-30 11:21:11 +05:30
Vishal
c1a6901e0b enc channel menu impromvents
mostly code improvements
2022-11-29 19:32:28 +05:30
Vishal
7c065f18e5 fetched 14x only after receiving an invite 2022-11-29 11:02:31 +05:30
Vishal
fe69a6503a more code moved to utils.dart 2022-11-28 15:42:25 +05:30
Vishal
a5e320cf72 default without argument invocation now possible with no pubkey 2022-11-27 01:39:39 +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
40120093d5 made initial wait 8 sec each, and later wait 1 sec each 2022-11-23 22:38:35 +05:30
Vishal
2e207ef054 enabled relay argument
new relay is added to list of relays used.
2022-11-19 15:51:12 +05:30
Vishal
245aa36f4c touched settings to get minimal events.
saved more so that need to get less with file.
2022-11-19 14:16:35 +05:30
Vishal
128841d067 added docker file which isn't working
issue is that readlinesync in docker is not reading anything from input.
2022-11-16 15:18:53 +05:30
Vishal
86f056b1a3 changed version to 0.1.4-beta 2022-11-16 10:54:39 +05:30
Vishal
20443d2408 nip05 support: shown in profile
and mentioned in 'show profile' and 'follow user' use cases if more than one profile are there.
2022-11-15 07:55:35 +05:30
Vishal
7448ef682a tweaked some constants to get fewer events
and added fn to print info about event types
2022-11-14 15:38:43 +05:30
Vishal
2969275145 added clear screen with some menus including main and public channel menus
version checkin doing now.
2022-11-13 14:43:17 +05:30
Vishal
6acfbcc7b4 increased days for self and self mention events
otherwise mostly inbox messages aren't coming which are needed  more
2022-11-08 00:59:08 +05:30
Vishal
e80bc5b03b fixed mistype done few commits ago which wasn't getting kind 42 2022-11-07 19:32:47 +05:30
Vishal
267c80fdef used myGetPublicKey 2022-11-07 16:28:56 +05:30