68 Commits

Author SHA1 Message Date
Vishal
c8d1312284 changed version number to 0.1.3-beta 2022-11-14 01:12:16 +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
1e9d056c68 printed menu horizontally 2022-11-13 03:18:37 +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
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
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
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
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
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
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
3f89e0b00f avoided two exceptions related to terminalcolumns
and to writing wrong delete event string
2022-09-13 20:52:59 +05:30
Vishal
3f8afda89a minor change in look
made depth == 6 etc
2022-09-12 20:30:57 +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
62dbe3de2e got dummy events, and showed likes as notification at start along with replies 2022-09-10 04:02:49 +05:30
Vishal
57ae28d834 added tree selector for notifications
needs to be fixed for likes...
2022-09-09 22:07:34 +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
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
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
03ef8e5cf0 added overwrite flag. improved chat display. 2022-09-06 03:40:34 +05:30
Vishal
f9eec2731d improved channel message printing and related 2022-09-04 00:15:33 +05:30
Vishal
267d8b62c9 formatting only 2022-09-03 04:59:12 +05:30
Vishal
e4e5be6bf9 put dm in separate menu.
fixed issue where new dm decryption was crashing when logged in with pubkey only.
2022-09-03 04:55:30 +05:30
Vishal
d0ecb4ff0b fixed issues introduced in last few commits
Where Tree was formed first, and then lot events were being inserted into it. This is not supported yet. So now events are collected initially, and then Tree is formed.

also fixed issue that new kind 0 events were not getting handled, which result that lists were not printing names.
2022-09-03 03:29:36 +05:30
Vishal
74541890b4 improved channel logic
fix: put messages in order in channels

improved dm menu. encryption etc still todo.
2022-09-01 21:55:51 +05:30
Vishal
69223d407d handled received delete kind 5 event
so that the original message is not printed. If the original message was in file, its still not deleted.
2022-09-01 05:28:43 +05:30
Vishal
ec83360ce6 added delete option in other menu, event is only sent
not handled yet.
2022-09-01 04:44:11 +05:30
Vishal
fdf60566da no major change 2022-09-01 01:07:42 +05:30
Vishal
eacc3bc1d0 Improved contact saving/access
.. by saving latest contact info in global structure with kind 0 info ( meta information). Makes profiles faster.
2022-08-31 22:15:17 +05:30
Vishal
b9b1a5723c code refactoring. printed info at start for anon use case. 2022-08-31 20:07:38 +05:30
Vishal
1137068f68 added basic page support for channels with too many messages. 15 msg per page now are displayed. 2022-08-30 23:47:59 +05:30
Vishal
9be9c2f681
Merge pull request #10 from sven-hash/main
add new relay
2022-08-30 19:34:11 +05:30
Vishal
0cd7105548 added difficulty option with max diff of 24 bit 2022-08-30 19:09:56 +05:30
cgi-bin/
7bea613ddf
add wss://nostr.ono.re 2022-08-30 14:32:09 +02:00
Vishal
f64a3d670e formatting changes 2022-08-30 14:15:22 +05:30
Vishal
1e493147e8 improved notification logic, added some pow code but unused now, added large intro print 2022-08-30 03:07:32 +05:30