Commit Graph

504 Commits

Author SHA1 Message Date
Hank Greenburg
e9fb8a4a57 chore: change from appdirs to platformdirs 2024-11-20 20:20:36 -08:00
Hank Greenburg
46a762d93a
Merge pull request #182 from Icy-Thought/upd-PyGObject
chore: update PyGObject dependency
2024-11-01 11:17:23 -07:00
Icy-Thought
93a1fcb36f
chore: update PyGObject dependency 2024-11-01 18:36:20 +01:00
Hank Greenburg
a2a2d704ee
Merge pull request #151 from codemonium/decrypt-initial-dm
Decrypt initial message after joining new DM
2024-10-30 14:39:08 -07:00
Igor Artemenko
a82652f6ad
Merge branch 'matrix-org:master' into decrypt-initial-dm 2024-10-30 10:19:53 +00:00
Hank Greenburg
6d88b8a215
Merge pull request #179 from matrix-org/update-install-instructions
docs: Update install instructions
2024-10-29 08:41:54 -07:00
Hank Greenburg
b8ca9b478d
Merge pull request #178 from matrix-org/update-matrix-nio
chore: upgrade matrix-nio and fix dasbus version
2024-10-29 08:41:20 -07:00
Hank Greenburg
bfb3b06153 docs: Update how to install packages with package manager 2024-10-28 20:13:16 -07:00
Hank Greenburg
e2abab1ecc chore: update pip install instructions in README 2024-10-28 20:11:44 -07:00
Hank Greenburg
5426d5bf9d chore: upgrade matrix-nio and fix dasbus version 2024-10-28 20:07:12 -07:00
Hank Greenburg
33909aa251
Merge pull request #173 from matrix-org/port-dbus
chore: Remove depreciated dependency pydbus for dasbus
2024-10-07 12:40:26 -07:00
Hank Greenburg
b66ed95319
Merge pull request #175 from matrix-org/readme-code-fences
chore: Add code fences to the README
2024-10-03 08:25:52 -07:00
Hank Greenburg
5caaaf5651 chore: Add code fences to the README 2024-10-02 18:12:51 -07:00
Hank Greenburg
f459d585ca
Merge pull request #174 from matrix-org/format-with-ruff
chore: Format with ruff and lint
2024-10-02 08:33:42 -07:00
Hank Greenburg
369f73f3fb chore: removing unused imports 2024-10-01 19:27:30 -07:00
Hank Greenburg
76dc74d250 chore: Format code with ruff 2024-10-01 19:20:29 -07:00
Hank Greenburg
adef63443e
Merge pull request #172 from matrix-org/update-readme-for-setup
chore: Update README with new setup instructions
2024-10-01 19:17:34 -07:00
Hank Greenburg
634ac7ed68 chore: remove depreciated dependency pydbus for dasbus 2024-10-01 19:14:39 -07:00
Hank Greenburg
8b2a1173fd update README with new setup instructions 2024-10-01 18:50:43 -07:00
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
313a5d528c
Decrypt initial message after joining new DM
Suppose that Alice logs in using Element. Before this change, when Bob
would send a DM to Alice through Pantalaimon, Alice would not be able to
decrypt Bob's initial message. Instead, she would see "Unable to
decrypt: The sender's device has not sent us the keys for this message."
and Pantalaimon's olmsessions table would have no associated records.
Any future messages would be visible however. On the other hand, when
Alice (using Element) is the one to send the first DM to Bob, he can
decrypt the initial message.

For Pantalaimon to execute /keys/claim, get_missing_sessions must return
the invitee's device (and log "Missing session for device"). If
Pantalaimon calls this method too soon, then self.device_store will not
have the device. To populate self.device_store before Pantalaimon calls
get_missing_sessions, it must execute /keys/query (and invoke
_handle_key_query) earlier, during the /createRoom request. Pantalaimon
does execute the /keys/query request during a sync after the server
finishes creating the DM (and logs "Adding new device to the device
store for user"), but only after checking unsuccessfully for the device
in self.device_store.

After this change, Pantalaimon executes /keys/claim, there is one record
in olmsessions, and Alice can decrypt Bob's initial message.
2023-01-12 16:26:24 +00: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