Commit Graph

484 Commits

Author SHA1 Message Date
Igor Artemenko
3968c69aa8 Set Pantalaimon presence to offline
Before this change, Pantalaimon users would always appear online because
that is the default state when the /sync endpoint's set_presence
parameter is not set. By explicitly setting the parameter to "offline",
only the user-facing client (which executes its own /sync request)
affects the presence state.
2023-05-25 20:08:11 +02:00
Damir Jelić
6638393042 Fix tox 2023-05-25 19:59:23 +02:00
Gerber Lóránt Viktor
807deb94ee fix media 2023-05-25 19:54:34 +02:00
Igor Artemenko
127373fdcc Fix typo 2022-12-07 11:50:25 +01:00
Damir Jelić
b5a419e488 chore: Bump our version 2022-09-28 17:01:27 +02:00
Damir Jelić
64a3fb0a48 chore: Fix a bunch of typos 2022-09-28 16:40:06 +02:00
Damir Jelić
4254a5d9d5 feat(daemon): Proxy the v3 endpoints as well 2022-09-28 16:28:54 +02:00
Damir Jelić
6b7b87bb6a fix(daemon): Make sure the token variable is declared 2022-09-08 17:22:38 +02:00
Christian Paul
2883df45c0 Update pantalaimon.8.md: it's own -> its own 2022-09-05 11:16:42 +02:00
Damir Jelić
492e4bb358
Merge pull request #125 from HarHarLinks/patch-1
clarify wording in README#Usage
2022-05-03 13:26:46 +02:00
Damir Jelić
8cdea3e637
Merge pull request #127 from pataquets/patch-1
Readme: add alternate, quicker Docker build method
2022-05-03 13:09:14 +02:00
Alfonso Montero
109ceed0bb
Readme: add alternate Docker build method 2022-04-29 12:20:37 +00:00
Kim Brose
eb4f3b54b4
clarify wording in README#Usage 2022-04-05 13:27:00 +02:00
Damir Jelić
85c7b685e5 Bump our version 2022-02-04 15:15:45 +01:00
Damir Jelić
82fcbf8e85 fix(pancl): Ensure that we create a event loop at the start 2022-02-03 11:45:07 +01:00
Damir Jelić
86060a2f75 fix(panctl): Allow GLib to be imported from pgi
Some distributions seem to have renamed the gi module to pgi, try to
import GLib from pgi if importing from gi fails.
2022-02-03 11:42:37 +01:00
Damir Jelić
3dd8051707 chore: Style fixes 2022-02-03 10:49:26 +01:00
Damir Jelić
e62cfe068a fix(daemon): Don't use strip to filter Bearer from auth header
Using strip might remove more than what is intended here.
2022-02-02 16:25:52 +01:00
Damir Jelić
c89e87c22a fix(daemon): Don't use the raw path if we need to sanitize filters
Using the raw path sabotages the filter sanitization.
2022-02-02 16:22:04 +01:00
Damir Jelić
e5fb0b7f17 ci: Enable github CI 2022-02-02 16:10:02 +01:00
Andrea Spacca
cd36ca68d5 thumbnail_url can be None 2021-09-04 13:13:50 +02:00
Damir Jelić
ed7aa55ef0 pantalaimon: Bump our version 2021-09-02 11:42:50 +02:00
Jan Alexander Steffens (heftig)
054a3bcb0b
pantalaimon: Forward raw path instead of quoting the decoded path
If the original path had quoted slash characters (`%2F`), the code
decoded them and then left them unquoted, causing the forwarded request
to fail.

An example is trying to ban a user with a slash in their name using
Mjolnir, which PUTs a state event with `rule:<username>` in the URL.

Use the undecoded path to avoid this.
2021-08-26 20:29:53 +02:00
Damir Jelić
e3be7bee3b pantalaimon: Bump our version 2021-07-14 13:48:16 +02:00
Damir Jelić
c6b021ed11 Merge branch 'prevent-downgrade-on-failed-sync' 2021-07-14 13:35:53 +02:00
Damir Jelić
a9f6ad2c7e pantalaimon: Don't forward messages if we think the room isn't joined 2021-07-14 12:25:39 +02:00
Damir Jelić
f875499d6b pantalaimon: Fix some formatting issues 2021-07-14 11:05:02 +02:00
Damir Jelić
340dbf2eb6 pantalaimon: Prevent the sending of messages if the client didn't sync
Pantalaimon depends on the room state to be present to decide correctly
if a message should be encrypted or now. The room state is fetched from
the server every time we restart, this means that failure to fetch room
states from the server would hinder us from doing the correct decision.

This patch prevents a downgrade to sending unencrypted messages if we're
unable to sync at least once with the server.
2021-07-14 11:02:30 +02:00
Damir Jelić
c36aca183b pantalaimon: Bump our version 2021-07-06 10:41:23 +02:00
Damir Jelić
3dcaad8a9f Merge branch 'patch_i90' 2021-07-06 10:35:23 +02:00
CortexPE
95bf217657 patch KeyError on sync 2021-07-02 19:45:40 +08:00
CortexPE
c455b37b67 prevent touching thumbnail info when not needed 2021-06-21 17:32:51 +08:00
CortexPE
48fd703772 Patch #90 2021-06-21 17:24:02 +08:00
Damir Jelić
a7286dfc9f pantalaimon: Bumb the version 2021-06-03 10:39:37 +02:00
Damir Jelić
2b359c22d2 store: Split out the media cache loading logic from the load media method 2021-06-03 10:18:29 +02:00
Damir Jelić
90cdc55451 pantalaimon: Reformat our source files using black 2021-05-28 14:30:04 +02:00
Damir Jelić
eabd5f5b51 pantalaimon: Add a config option to drop old room keys
This patch adds a config option that enables a mode wher a proxy will
only keep the latest room key from a sender in a certain room. This is
useful for bots that use pantalaimon since they are mostly only
interested in the latest messages and don't care about room history.
2021-05-28 14:29:45 +02:00
Alexander Manning
4cdf1be376 Merge branch 'alex-thumbnails' of github.com:aem09/pantalaimon into alex-thumbnails 2021-05-14 16:36:13 +01:00
Alexander Manning
5e81131ecf
Remove return from MediaInfo.to_thumbnail()
and from MediaInfo.to_content()
2021-05-14 16:35:20 +01:00
Alex Manning
4cd28da781 Merge branch 'matrix-org:master' into alex-thumbnails 2021-05-14 13:30:51 +01:00
Alexander Manning
7b4cc0527d
Encrypt Thumbnails
When a client sends a thumbnail with their media message, encrypt the
thumbnail too.
2021-05-14 13:30:06 +01:00
Damir Jelić
87169df413 pantalaimon: Bump our version 2021-05-14 13:53:51 +02:00
Damir Jelić
73f68c76fb pantalaimon: Bump the allowed nio version 2021-05-06 15:10:43 +02:00
Damir Jelić
db9cf77891 pantalaimon: Update the changelog 2021-03-10 09:42:47 +01:00
Damir Jelić
edab476a90 pantalaimon: Bump the version 2021-03-10 09:36:43 +01:00
Vojtěch Káně
376ca72014 setup.py: Bump the allowed nio version 2021-03-09 11:43:28 +01:00
Damir Jelić
e426d0fca6 pantalaimon: Update the changelog 2021-01-19 11:10:35 +01:00
Damir Jelić
bb65f0fac5 pantalaimon: Bump our version 2021-01-19 11:01:53 +01:00
Damir Jelić
3baae08ac3 setup.py: Bump the allowed nio version 2021-01-19 11:00:31 +01:00
Damir Jelić
30bf196956 pantalaimon: Update the changelog 2021-01-19 10:55:25 +01:00