Andrea Spacca
fadcf2934d
fix bug
2020-12-23 19:50:29 +01:00
Andrea Spacca
f747c83af4
cache in upload
2020-12-23 12:36:29 +01:00
Andrea Spacca
3a380cc91e
fix test
2020-12-22 21:00:09 +01:00
Andrea Spacca
404dfe568c
overwrite content
2020-12-22 20:52:04 +01:00
Andrea Spacca
a533c25efd
little cleaning
2020-12-22 17:45:34 +01:00
Andrea Spacca
8a40b9e6bc
refinements
2020-12-22 17:21:35 +01:00
Andrea Spacca
1168bcf7ff
CR fixes
2020-12-22 17:12:21 +01:00
Andrea Spacca
ce0fa21f94
fix await
2020-12-22 09:44:05 +01:00
Andrea Spacca
5273b83574
use mxc data in send_message
2020-12-22 02:47:28 +01:00
Andrea Spacca
e5922da6ec
WIP: first commit
2020-12-22 02:37:27 +01:00
Damir Jelić
726e96944d
store: Add a missing use-database decorator.
2020-12-02 12:42:42 +01:00
Damir Jelić
9c65c06075
pantalaimon: Bump the version.
2020-09-30 11:26:46 +02:00
Damir Jelić
d7089b91bd
daemon: Format the file.
2020-09-30 11:26:32 +02:00
Will Hunt
908c1a16be
Fix logger.warn error
...
Co-authored-by: poljar <poljar@termina.org.uk>
2020-09-16 15:01:16 +01:00
Will Hunt
3c5e42896f
log line
2020-09-16 11:59:46 +01:00
Will Hunt
fdbb35d806
Add valuerror
2020-09-16 10:10:40 +01:00
Will Hunt
73fa84a6e5
Do not try to login if the user authenticated via other means
2020-09-15 18:12:05 +01:00
Damir Jelić
625bde3305
pantalaimon: Bump the version and update the changelog.
2020-09-02 17:13:31 +02:00
Damir Jelić
d425e2d188
pantalaimon: Increase the max POST size.
2020-08-04 15:37:01 +02:00
Damir Jelić
01e0c9363e
client: Store media info when decrypting instead of using a event callback.
...
Event callbacks are only called for events that come through a sync
resposne. Since events in the scrollback might be decryptable there's no
reason to not store the media info for those as well.
2020-07-20 15:19:13 +02:00
Damir Jelić
2c0bd21e8c
Merge branch 'fractal-scrollback'
2020-07-20 15:18:35 +02:00
Damir Jelić
24b371be62
daemon: Sanitize the GET /rooms/{room_id}/messages filters as well.
...
Fractal started to apply filters on their scroll-back requests, this
sadly doesn't include encrypted messages so the scroll-back appeared to
be broken for encrypted rooms.
This patch modifies the filter sanitization logic, since Fractal also
sends out a new filter format that we didn't support, and applies it to
the GET /rooms/{room_id}/messages endpoint as well.
2020-07-20 14:26:07 +02:00
Damir Jelić
d388a21b9b
pantalaimon: Bump the version.
2020-07-02 12:19:59 +02:00
Damir Jelić
a1ce95076e
daemon: Catch POST requests that try to send out messages.
...
Synapse seems to accept a POST requests on the
_matrix/client/r0/rooms/$ROOM/send/m.room.message path.
While this is not specced in any way people might shoot themselves in
the foot by sending unencrypted messages to a room if they, by accident,
use the wrong HTTP method.
This fixes : #56
2020-06-24 15:04:37 +02:00
Damir Jelić
fae9330a6b
pantalaimon: Bump the version.
2020-06-21 20:46:53 +02:00
Damir Jelić
4bd1d1767f
pantalaimon: Bump the version.
2020-05-28 16:29:26 +02:00
Damir Jelić
56fd6b7a38
pantalaimon: Bump the version.
2020-05-27 17:10:55 +02:00
Damir Jelić
90eed20bef
pantalaimon: Bump the version so dockerhub picks it up.
2020-05-12 09:56:20 +02:00
Damir Jelić
b732938489
pantalaimon: Bump the version.
2020-05-10 19:12:09 +02:00
Damir Jelić
d58b761462
pantalaimon: Fix some lint issues.
2020-04-29 16:49:06 +02:00
Damir Jelić
ea042fa92f
ui: Don't run the glib loop if it was shut down already.
2020-04-29 16:28:51 +02:00
Damir Jelić
ed942187d4
main: Turn the daemon startup function async.
...
This removes removes the loop argument from the janus queue creation.
This fixes #49 .
2020-04-29 16:23:10 +02:00
Damir Jelić
a2994b0a55
client: Simplify the thumbnail URL setting.
2020-04-22 11:25:54 +02:00
Damir Jelić
9e53315540
main: Add the v1 media endpoints.
...
This uses the same logic as the r0 enpdpoints but some clients might be
stuck using the v1 ones.
2020-04-22 11:25:02 +02:00
Damir Jelić
4b6b61c4be
pantalaimon: Modify the media events so they contain the decrypted URLs as well.
...
This closes 43.
2020-04-21 12:06:51 +02:00
Damir Jelić
0be0b5301b
client: Log the decrypted sender, room id and event id at the info level.
2020-03-02 16:20:33 +01:00
Damir Jelić
0a5e8a7865
pantalaimon: Bump version.
2020-02-27 18:00:42 +01:00
Damir Jelić
e1fad6c7bd
client: Don't skip rooms for which we don't know the encryption state.
2020-02-26 13:33:45 +01:00
Damir Jelić
3014038ce5
client: Only log the decrypted events on the debug log level.
2020-02-26 13:33:23 +01:00
Damir Jelić
606efff925
pantalaimon: Bump the version.
2020-02-21 16:39:17 +01:00
Damir Jelić
99ff3eaf02
client: Add thumbnail media info to the store as well.
2020-02-20 16:32:50 +01:00
Damir Jelić
85dc80bfa7
setup.py: Remove the e2e_search feature.
...
The e2e_search feature depends on tantivy. The tantivy package got a
release on pypi in the meantime but the API changed in incompatible
ways.
Remove support for it so someone doesn't shoot himself in the foot.
2020-02-20 13:20:51 +01:00
Damir Jelić
9746a28368
ui: Format the ui file with black.
2020-02-20 13:17:20 +01:00
Damir Jelić
4dac44cfd7
daemon: Override the download endpoint and decrypt the files if necessary.
2020-02-20 13:16:54 +01:00
Damir Jelić
a8ba24339f
client: Catch encrypted media events and store the decryption keys.
2020-02-20 13:16:17 +01:00
Damir Jelić
af3b62dd7e
daemon: Load the media info when we start the daemon.
2020-02-20 13:15:43 +01:00
Damir Jelić
d25989cfd7
store: Add methods to store media info in the store.
2020-02-20 13:14:47 +01:00
Damir Jelić
99a1bccbc8
panctl: Format panctl with black.
2020-02-20 13:12:22 +01:00
Damir Jelić
45b823eac6
daemon: Intercept well-known requests.
...
Some clients might try to use homeserver discovery despite being
provided with a homeserver and only the local part of a MXID. To hinder
them from going around pantalaimon intercept well-known requests and
return a 404.
2020-02-14 12:55:35 +01:00
NotAFile
f3107e2d6b
string fixups
2020-01-31 23:05:47 +01:00