126 Commits

Author SHA1 Message Date
Vishal
0321e723e7 fetched reacted-to events not in store
also added location flag but did not use it.

improved function structure in tree.dart
2022-12-04 13:44:28 +05:30
Vishal
80c780cdd8 code improved for getting events together
no function change
2022-12-01 23:39:53 +05:30
Vishal
c692f13bd3 increased ininital delay and improved print ui for enc groups 2022-11-30 11:21:11 +05:30
Vishal
c1a6901e0b enc channel menu impromvents
mostly code improvements
2022-11-29 19:32:28 +05:30
Vishal
7c065f18e5 fetched 14x only after receiving an invite 2022-11-29 11:02:31 +05:30
Vishal
fe69a6503a more code moved to utils.dart 2022-11-28 15:42:25 +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
40120093d5 made initial wait 8 sec each, and later wait 1 sec each 2022-11-23 22:38:35 +05:30
Vishal
2e207ef054 enabled relay argument
new relay is added to list of relays used.
2022-11-19 15:51:12 +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
128841d067 added docker file which isn't working
issue is that readlinesync in docker is not reading anything from input.
2022-11-16 15:18:53 +05:30
Vishal
86f056b1a3 changed version to 0.1.4-beta 2022-11-16 10:54:39 +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
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
6acfbcc7b4 increased days for self and self mention events
otherwise mostly inbox messages aren't coming which are needed  more
2022-11-08 00:59:08 +05:30
Vishal
e80bc5b03b fixed mistype done few commits ago which wasn't getting kind 42 2022-11-07 19:32:47 +05:30
Vishal
267c80fdef used myGetPublicKey 2022-11-07 16:28:56 +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
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
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
a32e68affd fixed two issues - gStore and getParent
initialized gStore for --request case

And, fixed getParent for event, since otherwise it would return wrong parent. Now it would result in a dummy parent, as it should.
2022-09-24 13:51:14 +05:30
Vishal
73ddf92a57 got users events separately
otherwise its not fetching events for some users
2022-09-18 02:24:27 +05:30
Vishal
4163d81c9d fix: was not fetching contact
due to mistype was not fetching any contact at all. fixed that.
2022-09-17 23:57:33 +05:30
Vishal
6a4363be19 removed zip file 2022-09-17 13:28:54 +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
ecca05e771 only comments change 2022-09-15 02:43:16 +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
cd4abb6f9c reduced text width 2022-09-12 04:48:36 +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
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
e16fb421f4 fetched default accounts in first step itself 2022-09-09 14:32:56 +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
6c86bdd24a Got all channel events 2022-09-07 05:03:01 +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
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
Vishal
d5b6c31a61 build where dm can be read 2022-09-03 05:01:22 +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
23aab9ce9e initialized google translator only when relevant flag is given 2022-09-02 01:57:11 +05:30
Vishal
b153f29f20 Code refactoring: Separated out class Tree from main object Store
No functionality change intended.
2022-09-01 03:51:57 +05:30
Vishal
2b7c3e3124 Imporoved logic so that main tree is created with file events, and net events are later added to it.
Makes it easier to track so that later only net events are printed.
2022-09-01 00:40:00 +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