160 Commits

Author SHA1 Message Date
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
e346033944 unused code to fetch events liked but not seen 2022-11-23 17:40:09 +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
0eb0380bea improved previous commit 2022-11-21 14:59:38 +05:30
Vishal
d833677cf9 ensured that even if a user does not have a kind 0 event..
.. even then their pubkey is stored in the gKind0 store, so that their profile can still be looked up with profile view in 6 -> 1
2022-11-21 13:57:53 +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
25191dc675 added support for another positive emoji as reaction
two hands emoji
2022-11-15 10:53:44 +05:30
Vishal
b8ee45cf08 added support for heart as reaction
counted that as a + like
2022-11-15 10:51:34 +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
828313d940 improved so that user mentions do get stored in file at the end
and removed the 'recent only' condition when handling incoming events.
2022-11-15 08:49:06 +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
bdf292f395 Improved channel printing/formatting and event.getAsLine() 2022-11-13 20:54: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
2d3f8e24aa minor text changes 2022-11-12 12:58:12 +05:30
Vishal
56cea47c73 correction to previous commit
... about handling dummy update in store.fromJson.

And added version info.
2022-11-12 12:09:48 +05:30
Vishal
f5365e679d Improved Store::fromJson a bit
improved logic of dummy event creation, and updation.
2022-11-12 00:05:16 +05:30
Vishal
1009f0e874 improved notifications logic 2022-11-11 21:00:55 +05:30
Vishal
1273884ee2 Added support for reply/root in nip 10 in getParent
And changed so that if a kind 1 replies to a non kind 1, its still shown as a dummy post, with message saying they replied to a non kind 1.
2022-11-11 14:21:50 +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
5df6eeea00 improved notificaion text 2022-11-08 21:35:02 +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
deac0aa1c4 checked for channel size to avoid crash when printing channel overview 2022-11-07 13:16:05 +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
cd48fe5f68 printed some info for encrypted channels 2022-11-05 00:32:26 +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
212df566c6 specific spam prevention 2022-11-03 01:00:53 +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
Vishal
a93afee49d added encrypted channels
user can create and update private channel. and command /add <pubkey> is supported to add more people to group.
2022-10-30 00:27:11 +05:30
Vishal
e4f9cb2e40 improved addMessageToRoom fn, and added test to count messages in a channel 2022-10-29 11:17:17 +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
5bd074211f supported delete for channel posts 2022-10-11 04:47:32 +05:30
Vishal
0b6c2409b9 create channel 2022-10-06 01:33:39 +05:30
Vishal
b30047baa9 only formatting changes 2022-09-22 17:36:07 +05:30
Vishal
c7551d5dfd improved direct room printing 2022-09-18 02:33:54 +05:30
Vishal
2a50d09e17 fixed exception on name lookup in json in tree
also added notifications in other menu for sending contact addition event
2022-09-17 05:41:00 +05:30
Vishal
ea250f8b72 fix for getParent function
which should return the last e tag, which is a type 1 event for social network.

wasn't doing the check for kind 1, previously which has been fixed now, precipitated by event c185bb5473912f2ad74d7d0d25464af0ddeaab0261af32d4de66709b99928ac0

which refers to a kind 42 event at end, which was being taken as parent id.
2022-09-16 22:28:42 +05:30
Vishal
a3d27ada84 properly updated channel for incoming 42 message
Otherwise it was going to wrong/new room if it was a reply.
2022-09-15 21:30:14 +05:30
Vishal
0427aa5db3 improved display a bit
reduced print call by 1 to speed up printing on screen.

reduced depths allowed.
2022-09-14 06:58:45 +05:30