Archived
1
0
Fork 0
Commit graph

39 commits

Author SHA1 Message Date
d1422a896d
fix: failed to send messages in load_prompt (#1019)
Signed-off-by: xtex <xtexchooser@duck.com>
2023-11-12 23:46:08 +08:00
ccaab20a22
fix: fallback to default power level (#1020)
* fix: fallback to default power level

Signed-off-by: xtex <xtexchooser@duck.com>

* fix: py syntax

Signed-off-by: xtex <xtexchooser@duck.com>

---------

Signed-off-by: xtex <xtexchooser@duck.com>
2023-11-12 23:45:56 +08:00
fb8975c477
fix: add m.mentions to all matrix rich replies (#1016)
Some clients still show red-circle notifications when rich-reply messages are received but sometimes the events may be skipped.
Matrix spec says it is "desirable" to add user mentions to rich-reply messages.
Element, SchindiChat uses this but Cinny doesn't.
<https://github.com/cinnyapp/cinny/issues/1544>

Signed-off-by: xtex <xtexchooser@duck.com>
2023-11-11 21:29:32 +08:00
f29bcd6b76
feat(matrix): speed up!
Signed-off-by: xtex <xtexchooser@duck.com>
2023-09-11 15:26:25 +08:00
e262948c57
fix(matrix): stop running when failed to get display name
Signed-off-by: xtex <xtexchooser@duck.com>
2023-09-11 15:25:55 +08:00
6fa4613a04
fix(matrix): send with txn id
Signed-off-by: xtex <xtexchooser@duck.com>
2023-09-11 15:10:14 +08:00
dfc6c57d16
feat(matrix): cancel in-room verifications
Signed-off-by: xtex <xtexchooser@duck.com>
2023-09-11 14:58:17 +08:00
b786a33365
feat(matrix): set device name
Signed-off-by: xtex <xtexchooser@duck.com>
2023-09-11 14:41:29 +08:00
eccdff26e5
feat(matrix): key verification
Signed-off-by: xtex <xtexchooser@duck.com>
2023-09-11 14:28:46 +08:00
c654308ac3
feat(matrix/e2e): auto trust devices
Signed-off-by: xtex <xtexchooser@duck.com>
2023-09-11 14:05:32 +08:00
297fd18445
feat(matrix); query e2ee keys
Signed-off-by: xtex <xtexchooser@duck.com>
2023-09-11 13:21:33 +08:00
cbf9a58564
fix(matrix): skip user name change
Signed-off-by: xtex <xtexchooser@duck.com>
2023-09-11 13:18:51 +08:00
359414373d
fix(matrix): overwrite old megolm backup
Signed-off-by: xtex <xtexchooser@duck.com>
2023-09-11 13:02:28 +08:00
5fbac51730
fix(matrix): match invited rooms as private room
Signed-off-by: xtex <xtexchooser@duck.com>
2023-09-11 12:59:30 +08:00
b881c6feed
feat(matrix): import megolm backup
Signed-off-by: xtex <xtexchooser@duck.com>
2023-09-11 12:53:35 +08:00
dc8ad587a7
fix(matrix): await export keys
Signed-off-by: xtex <xtexchooser@duck.com>
2023-09-11 12:50:22 +08:00
4e44feca89
feat(matrix): log e2ee status
Signed-off-by: xtex <xtexchooser@duck.com>
2023-09-11 12:48:02 +08:00
95736eea91
fix(matrix): always ignore unverified devices
Signed-off-by: xtex <xtexchooser@duck.com>
2023-09-11 12:45:47 +08:00
6345bb7c77
fix(matrix/e2ee): set user_id properly
Signed-off-by: xtex <xtexchooser@duck.com>
2023-09-11 11:50:00 +08:00
4332d54dd7
fix(matrix): specify correct device_id
Signed-off-by: xtex <xtexchooser@duck.com>
2023-09-11 11:48:14 +08:00
093315ce35
feat(matrix/e2e): add warnings about megolm backup
Signed-off-by: xtex <xtexchooser@duck.com>
2023-09-11 11:34:13 +08:00
0d00b83e8c
feat(matrix): export megolm backup
Signed-off-by: xtex <xtexchooser@duck.com>
2023-09-11 11:25:11 +08:00
22b97d997e
feat(matrix): upload E2EE keys if needed
Signed-off-by: xtex <xtexchooser@duck.com>
2023-09-11 11:24:41 +08:00
a62f45311e
feat(matrix): restore nio store
Signed-off-by: xtex <xtexchooser@duck.com>
2023-09-11 11:24:13 +08:00
yzhh
73f2cb52ce Update message.py 2023-09-05 23:14:26 +08:00
yzhh
a9d22b7e94 compatible with old API 2023-09-04 15:04:28 +08:00
yzhh
20eb6ea51a ttt 2023-09-04 01:21:01 +08:00
yzhh
a17f6818a2 update 2023-09-03 19:49:14 +08:00
yzhh
f9ecd0f987 autoformat code 2023-09-03 16:50:12 +08:00
yzhh
ac20635a81 Update message.py 2023-09-03 16:44:19 +08:00
yzhh
55b075c56e update 2023-09-01 22:38:32 +08:00
yzhh
0300583965 #939 2023-09-01 19:42:33 +08:00
yzhh
523b38a1b8 Revert "reduce duplication of code"
This reverts commit 87dc9b7bf7.
2023-08-30 13:15:33 +08:00
yzhh
5e9ce79aac move client name to separate files 2023-08-30 02:13:34 +08:00
yzhh
87dc9b7bf7 reduce duplication of code 2023-08-29 23:33:17 +08:00
yzhh
2da8f7a20d fix validate_permission action behavior 2023-08-29 00:24:38 +08:00
yzhh
b7ad50082f update 2023-08-27 22:51:16 +08:00
yzhh
e6aa0a76d2 bugfix 2023-08-07 13:04:13 +08:00
23ae1fb5f2
feat: partial matrix support (#680)
* build(deps): add matrix-nio

* build(deps): update requirements.txt for matrix-nio

* feat: add example config for matrix

* feat: init matrix support

* feat: do init sync to avoid receiving old messages

* feat: store next sync batch with file

* feat: parse matrix message

* feat: check moderator permission

* feat: redacting message

* feat: toMessageChain for m.text and m.image

* feat: drop m.notice messages

* feat: sending messages

* fix: power level fetching

* fix: rich reply fallback stripping

* style: less log

* feat: guess image content type

* fix: image upload

* feat: sending audio

* chore: add todo

* chore: add todo

* fix: use FinS.result to store room id

As the spec, room_id is an opaque identifier, and at least all valid ASCII characters except '/' and ':' can be included in room_id. This means in some servers, '|' may be included in room_id.

* fix: print RoomSendError

* fix: public rooms with two user are regarded as DM

* feat: resolving pm

* fix: nio.ErrorResponse

* feat: add post test

* feat: pm post test

* Revert "feat: pm post test"

This reverts commit 3688213c80.

* Revert "feat: add post test"

This reverts commit 259fcf54ca.

* feat: create TPM room

* feat: send typing notifications

* feat: leave empty room

* feat: rich reply formatted fallback support

* fix: import

* fix: include body in formatted rich reply fallbacks

* fix: escape line breaks in html

* fix: <br/> tag

* feat: improve matrix direct messaging

* feat: parse m.emote as m.text

* fix: command run blockingly

* fix: message send error handle

* fix: keep DM room

* fix: reuse of DM rooms

* feat: add error log

* docs: add deploy guide for matrix

* docs: add matrix to readme

* docs: add more warning

* style: remove explictly type declartion  (poljar/matrix-nio#417)

* feat: receive audio message

* feat: standard rich-reply fallback for m.emote

* chore: add matrix to bug report issues template
2023-07-30 17:41:01 +08:00