Commit graph

265 commits

Author SHA1 Message Date
Julian Sparber
15afbb7022 verification: Move widgets to content and rename some 2021-12-17 18:43:19 +01:00
Julian Sparber
b2c9b70673 verification: Improve the code for identity verifications
This makes sure that we track verifications correctly. And makes the
code more readable.

This also prepares it for user verifcation other then ourselfs
2021-12-17 17:00:55 +01:00
Julian Sparber
dc0a938d7e timeline: Fix comment typo 2021-12-14 12:09:10 +00:00
Kévin Commaille
156660ccf3 Event: Use replacing event for source 2021-12-14 12:09:10 +00:00
Kévin Commaille
3732138a78 event: Fix replacing events
Only store replacing events instead of all related events to avoid useless notifications.

Ignore redacted events, and forward replacing events' changes.
2021-12-14 12:09:10 +00:00
Maximiliano Sandoval R
872601b13a Support dark mode 2021-12-14 11:39:05 +00:00
Maximiliano Sandoval R
8b8631130d Use AdwApplication
This allows to have a separate css file for dark mode.
2021-12-14 11:39:05 +00:00
Maximiliano Sandoval R
b623a931a7 app: Set resource base path on construct 2021-12-14 11:39:05 +00:00
Kévin Commaille
99abda19b6
message-media: Fallback to file if couldn't get thumbnail 2021-12-13 17:53:57 +01:00
Kévin Commaille
78f0ae1f38
media-message: Handle media loading and errors 2021-12-13 17:49:48 +01:00
Kévin Commaille
ada576b5ac
message-media: Use bigger thumbnails
See #26
2021-12-13 16:46:51 +01:00
Kévin Commaille
33c0c034e4
message-row: Deduplicate code for media messages
Most of the code was shared between image and video.
2021-12-13 16:44:40 +01:00
Julian Sparber
b9f3143540 room-details: Create object for MemberRow 2021-12-13 14:11:31 +01:00
Enterprisey
978e048500 mentions: Add initial support for sending mentions
A Pill in the message field will now result in a ping. There is
currently no way to add a Pill; you'll have to hack one in.
2021-12-13 03:26:38 -08:00
Kévin Commaille
bbb8d05e2b user-facing-error: Fix gettext string 2021-12-09 13:01:42 +00:00
Kévin Commaille
f7016fa310 user-facing-error: Rename file to be more consistent 2021-12-09 13:01:42 +00:00
Kévin Commaille
8193be8e2c room-history: Show video messages in the timeline 2021-12-09 12:49:31 +00:00
Kévin Commaille
14ba155073 image: Fix measure
Avoids critical errors in the logs
2021-12-09 12:35:18 +00:00
Julian Sparber
e25ecb04c8 room-details: Hide users already in the room from invite dialog 2021-12-09 02:26:53 +01:00
Julian Sparber
7325740485 room-history: Replace show to invite members in menu 2021-12-09 02:26:53 +01:00
Julian Sparber
a2fd4de501 room-details: Implement user invitiation 2021-12-09 02:26:53 +01:00
Julian Sparber
d545bfc220 user: Fix broken display-name property 2021-12-06 18:18:35 +01:00
Julian Sparber
b4a35372fe QrCodeScanner: Remove unnecessary clip
Backport of 24bf94be64
2021-12-06 17:16:13 +01:00
Julian Sparber
19aacda97c QrCodeScanner: Make sure to invalidate size on changes 2021-12-06 16:56:40 +01:00
Julian Sparber
5d83951e71 qr-code: Use self direclty 2021-12-06 15:17:57 +01:00
Julian Sparber
0d00c72951 room: Update room on incoming Tombstone event 2021-12-02 10:40:18 +01:00
Julian Sparber
dc5a9f0dbf content: Reuse gio::MenuModel for event context menu
This creates the gio::MenuModel only once which reduces the time needed
from over 300us to around 1us.
2021-12-01 18:16:36 +01:00
Julian Sparber
e8a2611f59 build: Add EventActions to meson.build 2021-12-01 18:16:36 +01:00
Julian Sparber
c3a8eb595a components: use reference to set menu for ContextMenuBin 2021-12-01 18:16:36 +01:00
Julian Sparber
b068be5dae room-history: Handle room upgrades
This adds a better widget for creation and tombstone events to the
room-history and shows buttons to allow users to navigate between
different version of a room.
2021-12-01 15:25:54 +01:00
Julian Sparber
387ec577b2 session: Add action to select room by id 2021-12-01 15:25:50 +01:00
Julian Sparber
bf1dfcc7e0 room: Hide upgraded rooms from sidebar 2021-12-01 12:51:43 +01:00
Kévin Commaille
59273a7b86
media-viewer: Fix race condition
It would cause a crash if the menu popover wasn't set yet.
2021-12-01 11:32:36 +01:00
Kévin Commaille
df8bca6f86
secret: Improve storage in SecretService
Only store one secret and use attributes recognized by Seahorse

Fixes #28 and #864
2021-12-01 10:54:17 +01:00
Kévin Commaille
f21eccfc15
session: Add Media Viewer 2021-11-30 19:32:24 +01:00
Kévin Commaille
a92c21770a
content: Move ItemRow's Event actions to its own trait
This will allow to use the same actions on other widgets.
2021-11-30 14:36:56 +01:00
Kévin Commaille
e2da077328
context-menu-bin: Explicitly notify when on context-menu change
Now, the notification is also sent when calling directly `set_context_menu`.
2021-11-30 14:29:44 +01:00
Julian Sparber
a5a484be8a content: Move room-history to it's own module 2021-11-30 11:59:36 +01:00
Kévin Commaille
56eefaf6df room-details: Sort members list by power level and name
Closes #469
2021-11-29 14:53:44 +00:00
Kai A. Hiller
35478155f4 room_menu: Add members item 2021-11-29 12:17:41 +01:00
Kai A. Hiller
0a6a820080 room_details: Add members page 2021-11-29 12:17:41 +01:00
Kévin Commaille
aee59b5371
text: Improve quote styling 2021-11-28 15:08:30 +01:00
Kévin Commaille
97dc747db4
image: Remove useless call to 'queue_resize' 2021-11-27 14:26:02 +01:00
Julian Sparber
aa3a723dee avatar: Use thumbnail instead of full sized image 2021-11-26 20:58:42 +01:00
Kévin Commaille
fa353bbb7f
content: Show stickers in the timeline 2021-11-25 19:56:32 +01:00
Kévin Commaille
68c146d6fb
content: Show image messages in the timeline 2021-11-25 19:48:44 +01:00
Kai A. Hiller
fe8ad34895 member: Add member role 2021-11-25 13:53:56 +00:00
Julian Sparber
511ab92a5f Add MemberList to meson and POFILES 2021-11-25 13:53:56 +00:00
Julian Sparber
a76055b393 power-level: Use a type for PowerLevel
Implemented by @V02460
2021-11-25 12:43:05 +01:00
Julian Sparber
e4f446ebee room: Make sure Room is disposed 2021-11-24 12:24:26 +01:00