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

45 Commits

Author SHA1 Message Date
James Mills
47f0df7cdc Add support for Dekstop/Web notifications via a forked beeep library (#103)
Co-authored-by: James Mills <prologic@shortcircuit.net.au>
Reviewed-on: https://git.mills.io/saltyim/saltyim/pulls/103
Reviewed-by: xuu <xuu@noreply@mills.io>
2022-03-31 06:33:59 +00:00
xuu
754fcc7323 feat: add compression negotiation for sent messages (#91)
feat: add compression negotiation for sent messages
fix: unix homedir handling

the service will negotiate a compression algo for sending messages
when a user chats someone during the auto discovery, the service returns an `Accept-Encoding: br, gzip, deflate`

the client saves that response and so when it makes POSTs of messages adds the best `Content-Encoding` and compresses the message

example:
```
>> GET /.well-known/salty/c765c69040d98f3af2181237f47ec01398d80f8ab2690fe929e4311ab05dec01.json

<< Accept-Encoding: br, gzip, deflate
<<
<< {"endpoint":"https://salty.home.arpa/inbox/01FZBR8Y2E6TH949JA3925WF71","key":"kex1wurry09ftqjuxgjl0jxmqypv4axqvzqljkgeadxjcpwtfuhcedcslck52d"}

>> POST /inbox/01FZBR8Y2E6TH949JA3925WF71
>> Content-Encoding: br
>>
>> [Brotli Compressed data]
```

this PR depends on https://git.mills.io/prologic/msgbus/pulls/24

Co-authored-by: Jon Lundy <jon@xuu.cc>
Reviewed-on: https://git.mills.io/saltyim/saltyim/pulls/91
Co-authored-by: xuu <xuu@noreply@mills.io>
Co-committed-by: xuu <xuu@noreply@mills.io>
2022-03-29 22:23:16 +00:00
James Mills
647dc97ff5
Fix some reliability issues with Client.Drain() that was dropping messages 2022-03-29 12:21:06 +10:00
mlctrez
969a263d06 support for contacts, multiple chat threads, and persistence (#77)
Co-authored-by: James Mills <prologic@shortcircuit.net.au>
Co-authored-by: James Mills <james@mills.io>
Co-authored-by: mlctrez <mlctrez@gmail.com>
Reviewed-on: https://git.mills.io/saltyim/saltyim/pulls/77
Co-authored-by: mlctrez <mlctrez@noreply@mills.io>
Co-committed-by: mlctrez <mlctrez@noreply@mills.io>
2022-03-28 21:49:01 +00:00
James Mills
5e22d087ee Make the service bot actually work finally (#73)
Co-authored-by: James Mills <prologic@shortcircuit.net.au>
Reviewed-on: https://git.mills.io/saltyim/saltyim/pulls/73
Reviewed-by: xuu <xuu@noreply@mills.io>
2022-03-27 05:25:09 +00:00
James Mills
c576a3c4ac Upgrade to msgbus msgbus v0.1.9 (reverting nhooyr.io/websocket change) 2022-03-27 13:03:23 +10:00
James Mills
ec0e74b895 Update to latest msgbus with replaced gorills/websocket with better library (#71)
Co-authored-by: James Mills <prologic@shortcircuit.net.au>
Reviewed-on: https://git.mills.io/saltyim/saltyim/pulls/71
Reviewed-by: xuu <xuu@noreply@mills.io>
2022-03-27 02:11:46 +00:00
James Mills
411d5500b3 Fix DNS lookup failures in the PWA by using DoH (DNS over HTTP) (#65)
Co-authored-by: James Mills <prologic@shortcircuit.net.au>
Reviewed-on: https://git.mills.io/saltyim/saltyim/pulls/65
2022-03-26 03:48:57 +00:00
James Mills
211f725986 Fix Lookup to actually use SRV records (where available) and refactor (#62)
Co-authored-by: James Mills <prologic@shortcircuit.net.au>
Reviewed-on: https://git.mills.io/saltyim/saltyim/pulls/62
Reviewed-by: xuu <xuu@noreply@mills.io>
2022-03-25 23:49:44 +00:00
James Mills
d0ecf8eb16 Fix support for 2-way chat (receive works 🥳) 2022-03-25 22:47:06 +10:00
James Mills
dbd9ecbd0e Merge branch 'material-design-exp-matt' 2022-03-25 15:14:19 +10:00
James Mills
958ba6d9d2 Add unit tests (#55)
Co-authored-by: James Mills <prologic@shortcircuit.net.au>
Reviewed-on: https://git.mills.io/saltyim/saltyim/pulls/55
2022-03-25 01:52:59 +00:00
James Mills
921705275a saltyd: Update to msgbus v0.1.8 2022-03-25 11:39:28 +10:00
mlctrez
43f5d14025 Merge branch 'material-design-exp-matt' of ssh://git.mills.io:2222/saltyim/saltyim into material-design-exp-matt 2022-03-24 17:48:51 -05:00
mlctrez
2f36047a5f rebase from master 2022-03-24 13:59:40 -05:00
mlctrez
61e3b8e6bd initial work on configuration page 2022-03-24 13:39:38 -05:00
James Mills
02842fd49c pwa: Playing around with material design 2022-03-24 13:37:18 -05:00
mlctrez
70cbed1fa9 initial work on configuration page 2022-03-24 09:50:51 -05:00
James Mills
7ffefb042e Refactor Endpoint for automatic endpoint discovery and less configuration (#46)
Co-authored-by: James Mills <prologic@shortcircuit.net.au>
Reviewed-on: https://git.mills.io/prologic/saltyim/pulls/46
2022-03-23 12:39:31 +00:00
mlctrez
73854ad66e initial goapp-mdc integration work 2022-03-22 23:06:56 -05:00
James Mills
801d6b93bb Add support for client and server (broker) registration (#43)
Co-authored-by: James Mills <prologic@shortcircuit.net.au>
Reviewed-on: https://git.mills.io/prologic/saltyim/pulls/43
2022-03-22 22:59:09 +00:00
James Mills
a37f578544 Add support for generating ULID(s) for User's Endpoints 2022-03-22 22:14:46 +10:00
James Mills
e5b0c0dde7 pwa: Playing around with material design 2022-03-22 15:44:54 +10:00
James Mills
c8bbcad0db Set go.mod to require Go 1.17 (since go-app requires it) and update deps 2022-03-22 11:29:52 +10:00
James Mills
be4b4a5e9d Add a basic structure for a go-app PWA + integrated Broker (#36)
Co-authored-by: James Mills <prologic@shortcircuit.net.au>
Co-authored-by: Jon Lundy <jon@xuu.cc>
Reviewed-on: https://git.mills.io/prologic/saltyim/pulls/36
2022-03-21 22:27:35 +00:00
James Mills
8993981e81 Refactor the code (#38)
Co-authored-by: James Mills <prologic@shortcircuit.net.au>
Reviewed-on: https://git.mills.io/prologic/saltyim/pulls/38
2022-03-21 14:46:16 +00:00
James Mills
024fbd7169 Make lookups less noisey, remove use of beeep 2022-03-21 11:21:18 +10:00
James Mills
6020106199 Update to msgbus v0.1.6 2022-03-21 02:14:10 +10:00
James Mills
18de067072 Upgrade to msgbus v0.1.5 2022-03-21 01:12:39 +10:00
James Mills
b2a648a2bc Further improve the formatting 2022-03-20 15:46:38 +10:00
James Mills
663edd1bc6 Fix bugs with the TUI client 2022-03-20 13:44:22 +10:00
James Mills
4c7835f394 Rebuild the shitty UI using tcell/tview 2022-03-20 11:19:21 +10:00
James Mills
ea059f3cb6 Re-add beeep desktop notifications 2022-03-20 00:46:21 +10:00
James Mills
e64001715f Update deps 2022-03-19 23:31:55 +10:00
James Mills
02f68a45d9 Add GoRelaser config 2022-03-19 22:56:23 +10:00
James Mills
d4bce14370 Upgrade deps 2022-03-19 22:30:57 +10:00
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
34f76e4294 Add chat command 2022-03-19 15:35:31 +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
a78e5c191a Minor improvements to the send command 2022-03-19 11:06:17 +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
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