458 Commits

Author SHA1 Message Date
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
7650efbc0c fixed how word is broken at non-space char 2022-09-15 14:25:17 +05:30
Vishal
fb3261440b improved reply to alignment 2022-09-15 02:19:30 +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
75d6dc6b44 channel message show reply to post
though replies cant be made from nostr console, it can display ones made from other clients.
2022-09-15 00:49:13 +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
a20d7d0672 made datelikes string aligned at same point for all events 2022-09-14 18:31:21 +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
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
33f65343b9 update on delete event write fix 2022-09-13 20:59:11 +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
7595f072d9 no real change; comments etc 2022-09-12 11:58:48 +05:30
Vishal
c2900a56eb no functional change 2022-09-12 11:33:55 +05:30
Vishal
cd4abb6f9c reduced text width 2022-09-12 04:48:36 +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
fd65725c0a improved paragraph shifting function
and added test.
2022-09-11 17:17:25 +05:30
Vishal
f24e5adec3 made colors same as anigma
total 8 colors with same logic as anigma
2022-09-11 00:14:59 +05:30
Vishal
481b0b41b8 Minor thread realignment changes 2022-09-10 22:30:56 +05:30
Vishal
e9d3a90765 removed automatically added well known private key
only the public key is still there which a user is automatically allowed to use
2022-09-10 21:06:59 +05:30
Vishal
aee1232c3f added color to names in channels 2022-09-10 20:56:14 +05:30
Vishal
a1d41214b3 aligned names to right
with color, and readjusted depth by 3 to left
2022-09-10 20:20:01 +05:30
Vishal
8bc965709d adding color to names in SN 2022-09-10 19:33:20 +05:30
Vishal
ae95fc5199 removed icon 2022-09-10 04:41:16 +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
fc7a66d30e changed dashes etc when left shifting deep threads 2022-09-10 00:37:02 +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
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
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
855b2fe8fe sorted direct room main view
made gStore a global.
Made directRooms a list rather than a map.
2022-09-07 15:44:15 +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
9558197cac made map out of bytesecret and do look up second time
speeds up a lot . each takes 0.05 secs to calculate.
2022-09-07 03:53:15 +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
9413873f6a moved date to left in chat print 2022-09-06 17:36:19 +05:30
Vishal
b281a1bd7b fixed end color marker getting clipped when padding etc
.. for long messages in chat. resulted in all-screen being blue etc.
2022-09-06 03:59:42 +05:30
Vishal
03ef8e5cf0 added overwrite flag. improved chat display. 2022-09-06 03:40:34 +05:30
Vishal
014a546411 added color in notification for new chat messages 2022-09-06 01:11:34 +05:30