151 Commits

Author SHA1 Message Date
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
d316b78198 fixed issues that made channels not update properly when created 2022-11-28 03:56:57 +05:30
Vishal
f77e02840e changed menu ordering for profile print
and removed unnecessary asserts which were giving unneeded issues when run with --enable-asserts
2022-11-28 01:35:41 +05:30
Vishal
531ea1f649 added test case for qr code 2022-11-27 20:33:53 +05:30
Vishal
7594939571 reduced size of qr code
still seen to work with nostrylus.vercel.app
2022-11-27 20:12:34 +05:30
Vishal
83d05c2721 printed qr code for user pubkey in profile print
can be read from nostrylus in both white/black font combo.
2022-11-27 14:18:35 +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
03317a1dfa info text improvement 2022-11-24 21:03:43 +05:30
Vishal
a1014f9c1a added cls and improved ui related to word search 2022-11-24 19:08:34 +05:30
Vishal
8f7b7b03e2 added new social network menu 2022-11-24 18:20:31 +05:30
Vishal
1065cb3b70 processed events, added delay, after sending kind 1 post
and improved option 6 -> 9 print info
2022-11-23 13:42:54 +05:30
Vishal
5a35516bd4 printed more info for nip05 list
and for multiple users printed
2022-11-22 13:02:19 +05:30
Vishal
bc64b202f4 improved info printed if more than one account is listed
added about info
2022-11-22 12:17:08 +05:30
Vishal
ea062ebf88 added support for '#' in url when not breaking one
and imporved logic for kind 0 processing ( tested with b10 account)
2022-11-22 04:08:32 +05:30
Vishal
916da86ebf text changes 2022-11-22 02:11:34 +05:30
Vishal
3eb5aadb7a Added support for kind 1 mentions of events (issue 30)
And '/reply id' for encrypted group chat.
2022-11-22 01:58:36 +05:30
Vishal
cd51b156a8 removed support for back slash
added support for nip05 in edit profile or kind 0 generation
2022-11-20 13:18:45 +05:30
Vishal
0365947c3f added support for writing double quotes
in social networ, and in public channel posts and replies.

Improved verify sig function, but its still not used ( and it fails for some specific events with pubkey starting with 00 and a minority of other events with special chars in them)
2022-11-19 21:17:39 +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
4865383af1 added printVerified but didnt use it yet 2022-11-16 10:51:08 +05:30
Vishal
20a599c539 reduced a line in main menu
clubbed user name print with prompt after menu display
2022-11-15 10:26:16 +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
9b52db93f1 limited menu columns to 4 2022-11-14 12:31:20 +05:30
Vishal
dd6c361526 added clear screen to encrypted group menu 2022-11-14 01:08:13 +05:30
Vishal
0f0834b4da improved some howto messages 2022-11-13 16:59:27 +05:30
Vishal
aa3e2c8526 reduced number of messages printed in channels
to 18 from 30.

improved channel name printing. increased \n printed on clear screen for unix.
2022-11-13 16:43:06 +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
137de1b118 menu color change and added _ in url regexp 2022-11-13 03:43:14 +05:30
Vishal
1e9d056c68 printed menu horizontally 2022-11-13 03:18:37 +05:30
Vishal
23dc5883ca added eTags in EventData as List of List
for root/reply change in getParent
2022-11-11 12:57:08 +05:30
Vishal
cb2b34f947 added updating profile with new kind 0 2022-11-11 12:41:03 +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
4fa0620140 improved reply to logic in channel
and changed so that /2 takes user to 2nd page etc rather than just 2
2022-11-08 18:45:35 +05:30
Vishal
55b8584a27 added reply to feature in public channels
tested with anigma
2022-11-08 13:31:00 +05:30
Vishal
7343a58320 improved channel and DM display and added menu info 2022-11-07 11:57:23 +05:30
Vishal
6b856eccd0 improved channel display and count shown 2022-11-07 11:24:21 +05:30
Vishal
1a885daad8 reduced internal events store
.. to improve speed of initial processing. Now keeping only latest 20 days posts.

improved info print.

improved fetching of events.
2022-11-06 23:45:31 +05:30
Vishal
5ec0635f39 added delay when sending group message
and changed menu text a bit
2022-11-06 17:00:09 +05:30
Vishal
a217fd9570 x now exits from any menu
where x represents the last menu option to exit the menu or application
2022-11-05 13:01:53 +05:30
Vishal
cd48fe5f68 printed some info for encrypted channels 2022-11-05 00:32:26 +05:30
Vishal
b37b903261 added mySign function 2022-11-04 22:04:15 +05:30
Vishal
00546adbbd handled blank reactions as + reactions for damus 2022-11-04 00:02:17 +05:30
Vishal
c37e2b038f improved ordering of channel display
.. by correctly placing empty channels depending on their creation date.

improved kind 0,3 fetching.

improved display around channel menu and printNotifications.
2022-11-03 23:25:28 +05:30
Vishal
202f1d14e2 added colored warnings in console_ui
* some extra spam prevention ( avoided bots from 4, 42, 142) and added a spam address
* reduced initial days fetched if events are read from file
2022-11-02 20:29:34 +05:30
Vishal
02a631faac honoured time order for 140/141
.. by using channel.lastUpdated which tracks which is the latest such event for a channel.
2022-10-30 13:24:13 +05:30
Vishal
644740ad25 fixed keys less than 64 bytes, and encrypted channel improvements
made so that live updation/decryption of messages can happen when user is added using 141 event. to be tested.
2022-10-30 11:46:51 +05:30
Vishal
5e7ed002bf fixed typo issue so that newly created encryped channel ..
.. is reflected immediately in list.
2022-10-30 00:52:04 +05:30