6
1
mirror of https://git.mills.io/saltyim/saltyim.git synced 2024-06-28 17:51:04 +00:00
Commit Graph

251 Commits

Author SHA1 Message Date
James Mills
8f0914ef22 Add make-user command (#9)
Co-authored-by: James Mills <prologic@shortcircuit.net.au>
Reviewed-on: https://git.mills.io/prologic/saltyim/pulls/9
2022-03-19 11:42:36 +00:00
James Mills
005a013753 Add support for looking for a default identity 2022-03-19 16:34:33 +10:00
James Mills
7a3f2e5159 Improve error handling for GetIdentity() and missing User address 2022-03-19 16:02:40 +10:00
James Mills
f5838a65a7 Update README 2022-03-19 15:48:42 +10:00
James Mills
d097dedd77 Ooops 2022-03-19 15:45:08 +10:00
James Mills
767e62a178 Update README 2022-03-19 15:43:43 +10:00
James Mills
34f76e4294 Add chat command 2022-03-19 15:35:31 +10:00
James Mills
522db3548c Ignore desktop notification errors silently 2022-03-19 14:41:53 +10:00
James Mills
365d000381 Fix Lookup not returning an error parsing invalid configs 2022-03-19 14:12:33 +10:00
James Mills
eefeb944e7 Improve display of date/time 2022-03-19 14:10:56 +10:00
James Mills
53c7bd5cad Fix shell readmsgs() so no arguments work properly 2022-03-19 14:01:26 +10:00
James Mills
14d08150a5 Format and colorize the messages nicely 2022-03-19 13:50:12 +10:00
James Mills
c2b6b44374 Add builtin support for sending desktop notifications 2022-03-19 12:46:37 +10:00
James Mills
7eec2da5a4 Add read command 2022-03-19 12:35:04 +10:00
James Mills
6a31d35397 go mod tidy 2022-03-19 11:25:04 +10:00
James Mills
e92052dccc Refactor lookup and send and bild a Request utility function 2022-03-19 11:24:07 +10:00
James Mills
a78e5c191a Minor improvements to the send command 2022-03-19 11:06:17 +10:00
James Mills
3854b869f8 Fix help message 2022-03-19 10:43:34 +10:00
James Mills
05b0dc4881 Minor shell fixes 2022-03-19 10:35:05 +10:00
xuu
78417dd472 feat: add send message functionality (#8)
I added sha256 for discovery and fallback ability.
And implemented sending message using msgbus.

Co-authored-by: Jon Lundy <jon@xuu.cc>
Reviewed-on: https://git.mills.io/prologic/salty-chat/pulls/8
Co-authored-by: xuu <xuu@noreply@mills.io>
Co-committed-by: xuu <xuu@noreply@mills.io>
2022-03-18 22:50:04 +00:00
xuu
578f95e26e use sha256 for discovery (#7)
and backwards compatibility for old way.

Reviewed-on: https://git.mills.io/prologic/salty-chat/pulls/7
Co-authored-by: xuu <xuu@noreply@mills.io>
Co-committed-by: xuu <xuu@noreply@mills.io>
2022-03-18 22:49:26 +00:00
James Mills
02bc19fd55 Send timestamps in UTC time 2022-03-19 01:20:41 +10:00
xuu
c7f9a042c7 feat: print control chars to clear and reprint prompt (#5)
This will make the feed of messages more natural looking

![image](/attachments/d7e041ae-4b1d-454c-b732-a3cb0fa6de6c)

Reviewed-on: https://git.mills.io/prologic/salty-chat/pulls/5
Co-authored-by: xuu <xuu@noreply@mills.io>
Co-committed-by: xuu <xuu@noreply@mills.io>
2022-03-18 15:15:25 +00:00
James Mills
82b2b10fad Refactor for better naming and terminology 2022-03-19 01:13:31 +10:00
James Mills
475a88b564 Minor fixes 2022-03-19 01:05:39 +10:00
James Mills
7e6c4b2dc7 Add lookup command (#4)
Co-authored-by: James Mills <prologic@shortcircuit.net.au>
Reviewed-on: https://git.mills.io/prologic/salty-chat/pulls/4
2022-03-18 14:48:59 +00:00
James Mills
84d0d51231 Ooops 2022-03-18 23:19:37 +10:00
James Mills
570529f0a4 Fix instructions for setting up the Salty Config 2022-03-18 22:58:50 +10:00
James Mills
31ce9336e2 Ooops 2022-03-18 21:10:13 +10:00
James Mills
f720b475ae Make salty-chat sendmsg and chat compliant with the spec v1.1 2022-03-18 21:09:05 +10:00
James Mills
9e94de91c3 Fix some bad printf(s) 2022-03-18 11:49:36 +10:00
Aoi Koizumi
d00625413b Simplified the salty commands' presence check, correct XDG_DATA_HOME to $XDG_CONFIG_HOME.
Signed-off-by: Aoi Koizumi <novaburst@kalli.st>
2022-03-18 11:37:23 +10:00
James Mills
67f2fde644 Fix some shell warnings 2022-03-18 10:40:02 +10:00
xuu
4f253bcc9d add background for reading user messages (#2)
One note of change.. in the .key file we should put the nick@domain.tld so when it formats the message it has that in the message.

Signed-off-by: xuu <xuu@noreply@mills.io>
Reviewed-on: https://git.mills.io/prologic/salty-chat/pulls/2
Co-authored-by: xuu <xuu@noreply@mills.io>
Co-committed-by: xuu <xuu@noreply@mills.io>
2022-03-18 00:34:30 +00:00
James Mills
4a8bbccce2 Refactor message formatting 2022-03-18 02:26:34 +10:00
James Mills
8445183c98 Improve help output 2022-03-18 02:20:15 +10:00
James Mills
61c98bb45f Fix help to show how to use make-user 2022-03-17 22:56:28 +10:00
James Mills
27f5e794b9 Improve lookup error handling 2022-03-17 13:55:18 +10:00
James Mills
6dc6fc4843 Update README on new chat sub-command 2022-03-17 12:41:08 +10:00
James Mills
161bd7d835 Ignore blank messages 2022-03-17 12:37:26 +10:00
James Mills
9666a5025b Add chat sub--command to read a line in a loop and send to recipient 2022-03-17 12:27:01 +10:00
James Mills
e46dd5fe2c Update instructions re MSGBUS_URI 2022-03-17 12:14:48 +10:00
James Mills
32b52b23ec Trigger CI 2022-03-17 10:55:36 +10:00
James Mills
b8fcdb0f68 Write an ASCII Bell on new messages 2022-03-17 07:47:03 +10:00
James Mills
b2478c1524 Update README 2022-03-17 07:32:53 +10:00
James Mills
79f6c66fdc Simplify into a single script 2022-03-17 07:29:26 +10:00
James Mills
5a06155fdf Update README with more docs 2022-03-17 01:54:20 +10:00
James Mills
8e7688b8ae Update the README with better docs 2022-03-17 01:48:04 +10:00
James Mills
23cd2e530f Add a lookup mechanism that uses nick@domain and a request to https://domain/.well-known/salty/nick.json 2022-03-17 01:14:00 +10:00
James Mills
095f9b41f6 Give messages a bit of a format 2022-03-16 23:21:53 +10:00