218 Commits

Author SHA1 Message Date
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
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
77fd4d62e7 improved delete event by adding delay to process incoming 2022-10-11 01:55:54 +05:30
Vishal
8ae05a6dd3 fixed process of incoming when in a channel 2022-10-07 02:13:06 +05:30
Vishal
446d64485d called process incoming function in channel post
.. and in DM send, so that now sent messages are also received and processed, giving better UI.
2022-10-06 04:40:28 +05:30
Vishal
0b6c2409b9 create channel 2022-10-06 01:33:39 +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
805a130d24 displayed name with public ids printed..
in case there are more than 1 when looking up a profile
2022-09-15 01:08:18 +05:30
Vishal
149e06acf3 fixed get channel fetch so channels get printed
replies not supported yet
2022-09-14 23:57:38 +05:30
Vishal
9cf532e00d removed channels from menu
because the replies feature is messing with nostr console logic right now
2022-09-13 21:34:01 +05:30
Vishal
5f9516d22d fixed name printing a bit
changed notification delay time a bit.
2022-09-13 21:14:21 +05:30
Vishal
3f89e0b00f avoided two exceptions related to terminalcolumns
and to writing wrong delete event string
2022-09-13 20:52:59 +05:30
Vishal
60e2d4bf1b fixed issue with top left event encloser
where it was misaligned by one for notifications only.
2022-09-13 03:14:30 +05:30
Vishal
3f8afda89a minor change in look
made depth == 6 etc
2022-09-12 20:30:57 +05:30
Vishal
c2900a56eb no functional change 2022-09-12 11:33:55 +05:30
Vishal
45fe733a42 improved paragraph creation logic 2022-09-12 01:36:14 +05:30
Vishal
985ffc89f2 minor improvements
changed order in menu to make them consistent
2022-09-11 20:01:59 +05:30
Vishal
33e82ef74e put threads in start/end marks 2022-09-11 19:12:23 +05:30
Vishal
57ae28d834 added tree selector for notifications
needs to be fixed for likes...
2022-09-09 22:07:34 +05:30
Vishal
700e44dcc3 improved notifications for all three in beginning 2022-09-09 20:44:54 +05:30
Vishal
0e0b5bc048 printed notifications for channels too at start
so all three notifications get printed now at start
2022-09-09 19:26:40 +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
b5470fd4f9 fixed follow logic
work in progress on showing notifications in channels etc
2022-09-08 22:51:59 +05:30
Vishal
b358c7c866 used trip with getAuthorName so that names with spaces can be accessed in inbox 2022-09-08 19:38:54 +05:30
Vishal
438838af33 showed mutual follows in profile for self 2022-09-08 19:22:18 +05:30
Vishal
cb8c74bef3 sorted channels by latest event
made them into a list like directRooms in Store
2022-09-08 18:50:30 +05:30
Vishal
ef75ba3fad if a user is followed, their events are requested too 2022-09-07 04:46:37 +05:30
Vishal
0eff610aeb some tweaks in time, reduced wait initially
from 3 to 2 sec in variable
2022-09-07 04:32:11 +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
03ef8e5cf0 added overwrite flag. improved chat display. 2022-09-06 03:40:34 +05:30
Vishal
777e644ae5 Improved how room is printed
made name take more width; other minor changes
2022-09-06 00:20:55 +05:30