Commit Graph

2140 Commits

Author SHA1 Message Date
OfficialDakari 3ac7f6153a Merge branch 'main' of https://github.com/famedly/matrix-dart-sdk 2025-11-17 11:09:35 +05:00
Christian Kußowski 1365cbffe5
refactor: (BREAKING) Replace Event.relationshipType
and Event.relationshipEventId with Event.inReplyToEventId()
for replies.

This fixes the situation that an event can be
a reply and in a thread. Before we have seen reply
as an relationshipType but this does conflict with
the concept of threads, where an event can be
of relationship type "thread" but also be a reply
with being a fallback or not.
2025-11-12 10:57:23 +01:00
Christian Kußowski 4a4ccfd4e8
refactor: Make direct chat getter type safe
This also makes sure that we
do not accidentally change
it in RAM before the
change comes from the server
when calling
addToDirectChat()
2025-11-11 09:18:51 +01:00
Christian Kußowski 4e3e7d9ccc
chore: Cache auth metadata response in client
This is helpful for oidc and
a requirement for implementing
soft logout with oidc.
2025-11-10 13:30:09 +01:00
Christian Kußowski 4170c0fca5
feat: Allow init with access token
Makes it possible to just init
with an access token and a
homeserver uri and the init()
method would just call /whoami
to fetch the missing data.
Makes it easier to login with
Matrix native OIDC
2025-11-10 10:30:42 +01:00
Christian Kußowski c30c1c15a1
refactor: Add option to always call auth metadata
This also makes sure we call
on v1.15 as there the endpoint
was actually introduced.
Also adds a unit test.
2025-11-09 08:41:32 +01:00
Christian Kußowski 374c8c5379
feat: (BREAKING) Discover OIDC auth metadata on Client.checkHomeserver() 2025-11-07 10:15:07 +01:00
Christian Kußowski c9f8ece8d4
refactor: Escape HTML tags before markdown rendering 2025-11-04 14:57:30 +01:00
krille-chan 32a9f53587
feat: Implement msc 3381 polls 2025-11-04 14:06:43 +01:00
Christian Kußowski 0008ae380f
refactor: Simpler update user device keys 2025-11-03 15:18:35 +01:00
OfficialDakari a0685ec64c fix 2025-11-02 18:55:21 +05:00
OfficialDakari 92e69b5f1e edits and reactions in threads 2025-11-02 14:11:11 +05:00
Christian Kußowski eb2cd6cb96
fix: Set join rules with knowk_restricted and multiple allow condition room ids 2025-10-30 08:30:19 +01:00
OfficialDakari 09643a172f make Room#loadThreadsFromServer public 2025-10-30 11:50:17 +05:00
Christian Kußowski 86d1eb85f9
fix: Correctly remove space child 2025-10-27 10:15:56 +01:00
Kelrap 889c8e6555 feat: Use small versions of bullet point characters 2025-10-27 09:06:28 +01:00
OfficialDakari 56f34ecb59 implement some changes 2025-10-26 15:01:18 +05:00
OfficialDakari 6b5ecb21d4 load more threads when requesting history 2025-10-25 21:53:33 +05:00
OfficialDakari 98031bbb3d working hard 2025-10-25 18:43:31 +05:00
OfficialDakari 74c39f91fe did something 2025-10-24 21:21:20 +05:00
OfficialDakari 0fb0a6c47f working on threads 2025-10-22 18:13:59 +05:00
OfficialDakari 889477e07c I forgot what I changed sorry 2025-10-21 21:31:42 +05:00
OfficialDakari c4df172416 fix warnings in room_timeline 2025-10-21 19:25:34 +05:00
OfficialDakari 5e1783eaa2 implement sendLocation and sendFileEvent in Thread 2025-10-21 19:23:49 +05:00
OfficialDakari 784d4e4010 implement Thread.sendTextEvent 2025-10-21 19:20:12 +05:00
OfficialDakari d5a743622f add trailing comma 2025-10-21 19:14:23 +05:00
OfficialDakari c1f42cf881 add _refreshLastEvent to Thread
use Event.fromMatrixEvent instead of casting
2025-10-21 19:12:05 +05:00
OfficialDakari dab7b8b5be use Event instead of MatrixEvent 2025-10-21 19:06:37 +05:00
OfficialDakari a64492e2d8 chore: add trailing comma 2025-10-21 19:04:30 +05:00
OfficialDakari 4ca2a5eee3 implement Thread.fromJson 2025-10-21 19:03:17 +05:00
Karthikeyan S 9df13a02ea
refactor: merge onGroupCallState and onGroupCallEvent into matrixRTCEventStream with proper types 2025-10-21 14:59:48 +05:30
OfficialDakari 8f4da40dec split Timeline into abstract and RoomTimeline 2025-10-19 17:44:46 +05:00
OfficialDakari c3e596653d boilerplate for threads 2025-10-19 16:37:49 +05:00
OfficialDakari c1d8f79976 Merge branch 'main' of https://github.com/famedly/matrix-dart-sdk 2025-10-16 20:18:42 +05:00
Christian Kußowski 6c17e43445
fix: Remove avatar crashes with invalid uri
We should send an empty string
there as the comment mentions.
Uri.parse around it was just a
typo.
2025-10-15 12:54:53 +02:00
td dbde0f23d0
chore: tidy up call membership event 2025-10-13 18:22:08 +02:00
Christian Kußowski a43786674b
chore: Follow up forward displayPendingEvent when using Room.sendTextEvent() or Room.sendFileEvent() 2025-10-09 08:47:14 +02:00
Christian Kußowski 39f74a7293
feat: Make display sending event configurable in Room.sendEvent()
It might be desirable to not display
a pending event in the timeline.
For example when sending a
message from a push notification
while the app is in background, the
app does not sync at all so the
pending events will be
misplaced.
2025-10-09 07:48:46 +02:00
td 6c17e3cfdf
feat: reactions for voip calls
Co-authored-by: Karthikeyan S <karthikeyan.s@famedly.com>
Co-authored-by: Yash Garg <me@yashgarg.dev>
2025-10-02 16:27:50 +02:00
OfficialDakari 58c4cf19d0 Merge branch 'main' of https://github.com/famedly/matrix-dart-sdk 2025-10-02 11:33:16 +05:00
Christian Kußowski b21df62a2e
chore: Add deprecated type aliases for renamed models 2025-10-01 10:14:05 +02:00
Christian Kußowski 8439e2b11e
chore: Remove unused callbacks
Forgot to remove them in the last PR.
2025-10-01 08:00:31 +02:00
Christian Kußowski 014fc73957
refactor: Support matrix spec 1.16 2025-09-30 12:53:45 +02:00
Christian Kußowski fe94df97db
refactor: Upgrade to vodozemac cryptoutils 2025-09-30 10:07:19 +02:00
Christian Kußowski 9549270423
chore: Revert on upload progress
This is not working as expected.
As far as I can see there is no
way to do this with the http
package for now. Only way would
be to switch to dio. Not sure
if we want to do this.
2025-09-29 14:58:40 +02:00
Christian Kußowski 8735ecd378
feat: Add onProgress for upload and download methods 2025-09-29 11:56:15 +02:00
Christian Kußowski 68f2fb9ddb
feat: Leave DM rooms and invite when ignoring a user 2025-09-29 09:40:51 +02:00
Karthikeyan S 6b73fc6354
refactor: migrate to web and js_interop pkgs 2025-09-26 14:08:01 +02:00
Christian Kußowski 98dd75d822
feat: Set m.mention field when sending text event 2025-09-17 13:35:30 +02:00
Christian Kußowski 77fb2b29e7
feat: Implement get mentions from event content 2025-09-17 13:35:30 +02:00