53 Commits

Author SHA1 Message Date
Vishal
5071c1f1e6 fix where notifications likes were messing up length
.. and getting shifted to left. By counting the newly inserted color string into the calculations.
2022-12-28 14:55:59 +05:30
Vishal
536c412173 improved on logic of printing fewer events per thread 2022-12-26 23:47:07 +05:30
Vishal
7e1e7bdf78 qr test fix 2022-12-25 20:32:37 +05:30
Vishal
d79b14ebee improved ln qr generation. added --qrln flag 2022-12-25 13:51:28 +05:30
Vishal
922377a4e4 added 500 ms delay after kind 1 send
added ln to qr code but did not use it.
commented out re-broadcast section.
2022-12-22 18:42:54 +05:30
Vishal
9014304320 made lookup bug free
so that full names can get the right channel.

And case is not considered when looking up channels.
2022-12-05 17:47:36 +05:30
Vishal
6d5cbde5f4 added t tag to messages with #tags 2022-12-05 11:57:34 +05:30
Vishal
57d4fbad28 fixed tests 2022-12-05 10:31:26 +05:30
Vishal
6b00b899b6 updated test cases and test data file 2022-12-04 18:51:43 +05:30
Vishal
eb9a666376 removed restrictions on not saving some events
otherwise no functional change .. (except improving how encryptedchannel list is initialized in Store construction in FromEvents)
2022-12-01 22:40:14 +05:30
Vishal
2fd5bb0d68 improved channel appearance
names in dm an be searched by prefix
2022-11-29 08:27:30 +05:30
Vishal
fe69a6503a more code moved to utils.dart 2022-11-28 15:42:25 +05:30
Vishal
f1ab310630 added utils.dart
moved string related and other such code to utils.dart
2022-11-28 12:09:37 +05:30
Vishal
531ea1f649 added test case for qr code 2022-11-27 20:33:53 +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
8f7b7b03e2 added new social network menu 2022-11-24 18:20:31 +05:30
Vishal
f2356d85fa added more tests for url breaking
and improved logic too
2022-11-22 11:47:50 +05:30
Vishal
e508388f21 fixed tests for url break 2022-11-13 11:32:41 +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
b30047baa9 only formatting changes 2022-09-22 17:36:07 +05:30
Vishal
7650efbc0c fixed how word is broken at non-space char 2022-09-15 14:25:17 +05:30
Vishal
45fe733a42 improved paragraph creation logic 2022-09-12 01:36:14 +05:30
Vishal
fd65725c0a improved paragraph shifting function
and added test.
2022-09-11 17:17:25 +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
206d36e7d6 made test compilabe to run action 2022-09-08 19:24:38 +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
582c422792 added dm to menu and displayed them but no en/decryption done yet 2022-09-01 16:57:57 +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
00d3f3415c only wrote new events to the file 2022-08-31 23:04:43 +05:30
Vishal
38ae89a3b2 fixes tests, added logging library, lot of other code refactoring. 2022-08-29 04:59:28 +05:30
vishalxl
dff3ff70b0 added support for kind 40/42 messages, and displayed if any chat room are there. Messages not displayed yet 2022-08-24 03:36:08 +05:30
vishalxl
ed791c61be added option to print a particular users all tweet only in other menu 2022-08-22 09:05:23 +05:30
vishalxl
912a35e21a colorified the notification for likes 2022-08-20 03:12:32 +05:30
vishalxl
3c9110b539 printed the events whose parents are not known, so that they are printed with a dummy event as parent 2022-08-18 16:49:30 +05:30
vishalxl
42111a7569 improved logic that new event are not printed twice 2022-08-17 23:13:48 +05:30
vishalxl
bcf023e156 separated files into two - events and tree 2022-08-16 04:53:42 +05:30
vishalxl
b457016a3f added menu support. and posting of message using throwaway hard-coded pubkey. git bash is not giving input readline, but works on win cmd 2022-08-13 18:50:07 +05:30
vishalxl
0a97377f44 fixed time duration in test with a workaround 2022-08-12 18:12:54 +05:30
vishalxl
f1d9968140 added minimal support for mentions. not tested properly 2022-08-12 04:19:30 +05:30
vishalxl
31228e5561 added --days options, which controls how many recent days of posts are shown, default value is 3 days. This reduces clutter on output 2022-08-11 02:36:38 +05:30
vishalxl
666606831c improved tree creation. move events now get printed 2022-08-06 23:59:59 +05:30
vishalxl
78462f257d added a test, which will be used to test the proper creation of tree from event list, which is not yet done 2022-08-06 22:44:28 +05:30
vishalxl
f0156c3bae received events for ptags/mentions. Then removed duplicate events received. 2022-07-31 23:29:47 +05:30
vishalxl
f19135bfa2 sorted trees, and formatting changes 2022-07-31 21:36:50 +05:30
vishalxl
8bb9e66efe added tags in Event for e/parent, and logic to add event child to its parent tree, so the display is showing tree in some cases. Not complete. 2022-07-31 16:58:14 +05:30
vishalxl
f42c186363 minor changes 2022-07-31 02:41:31 +05:30
vishalxl
2e18ca8632 Added Tree and printed it from former EventNode 2022-07-30 23:16:39 +05:30