Nicolas Werner
a83ae7e95f
Fix section layout issues and pagination issues
...
Pagination could get stuck, if the messages request failed.
Section height seemes to have been calculated to late, which would make
some section overlap the next message in some cases. Fix that by doing
the height calculation manually.
2019-11-23 20:06:15 +01:00
Nicolas Werner
52056a79fa
Try to reduce memory usage by reusing avatar pixmaps
2019-08-26 08:51:56 +02:00
Joseph Donofry
3f563e1e6e
Cache User Mentions
...
Cache user mentions when they are retrieved from the server.
This logic currently isn't being utilized by the UI. Additionally,
the app should use a 'since' value to only get mentions newer
than those stored in the DB, to avoid excessive web requests.
This will be implemented in a future commit.
2019-08-09 23:34:44 -04:00
Joseph Donofry
24a6495291
Fix lambda capture issue
2019-07-29 15:37:21 -04:00
Joseph Donofry
fd2d4d6db3
Update mentions dialog
...
Mentions are now separated into 'this room' and 'all rooms'
tab., which allows the user to filter on the current room
if they desire. Should add additional logic in the future
to show which room the mention was in the for the 'all rooms'
view.
2019-07-28 23:14:10 -04:00
Nicolas Werner
dbb8eecf29
media->file in error message, when image upload fails
2019-07-28 16:16:02 +02:00
Nicolas Werner
1c9cc33902
Try to localise timestamps
...
I'm not sure, if that is the right way, but Qt doesn't really have a way
to format custom localised dates, so I tried to find the closest
approximations to what we currently have.
Relates to #69
2019-07-28 12:55:08 +02:00
Nicolas Werner
cefe5fe719
Fix copy and pasting image from clipboard
...
If the QMimeData contains an image, it actually has a mime type of
application/x-qt-image. At least in some cases accessing the image/*
data returns a 0 length array. Accessing the data via ->imageData works
however. So we use that as our accessor and pass it to the preview
dialog.
2019-07-22 02:38:44 +02:00
Joseph Donofry
d2af827194
Fix linting issues
2019-07-16 22:50:23 -04:00
Joseph Donofry
579bf23460
Add User Mentions Dialog
...
Add a RoomListItem-like button that opens a dialog
containing all of the messages that would result in a
highlight from the server (for example, the user is mentioned,
or @room is mentioned).
This is VERY rudimentary and will be completely reworked in the future
to take advantage of the existing TimelineView class, instead of
using a dialog like it does now. The button to show the mentions
also needs work.
2019-07-16 22:39:10 -04:00
Joseph Donofry
c0a010acbb
Fix deprecated function call issues with Qt 5.13
...
Update to mtxclient 0.3.0
2019-07-04 21:20:19 -04:00
Joseph Donofry
175737c28b
Fix some linting issues
2019-07-04 13:18:32 -04:00
Nicolas Werner
713f9dbe89
Show room version in settings
2019-07-04 01:26:16 +02:00
redsky17
75fb95855d
Nlohmann build updates
2019-02-24 20:05:11 +00:00
redsky17
6d629f1c90
Add download button to ImageOverlay
...
When opening images in the full-screen overlay, there is now
a download button next to the close button. This button utilizes
the same functionality as the right-click->save image button.
2019-01-30 18:01:36 -05:00
Konstantinos Sideris
8f89ad15f7
Change the minimum width for modals
2018-09-30 13:37:38 +03:00
Konstantinos Sideris
9038c950ae
Remove pixel value from fonts
2018-09-30 13:24:36 +03:00
Konstantinos Sideris
7a288cc2cb
Add infinite scroll in member list
...
fixes #446
2018-09-25 15:43:48 +03:00
Konstantinos Sideris
39b4c83bb0
Don't clear the member list when the modal is hidden
...
fixes #447
2018-09-25 14:53:07 +03:00
Konstantinos Sideris
adf2019c56
Use QPushButton on the preview modal
2018-09-25 14:41:47 +03:00
Konstantinos Sideris
b0e3a7c7fa
Add close buttons to all dialogs
2018-09-21 13:56:39 +03:00
Konstantinos Sideris
ce26f041ad
Add method to center widgets & clean up unused headers
2018-09-21 10:55:24 +03:00
Konstantinos Sideris
ecc346a6da
Close dialogs on confirmation
2018-09-20 09:59:14 +03:00
Konstantinos Sideris
d4ce7a9dda
Use confirm as the default button
2018-09-20 08:52:31 +03:00
Konstantinos Sideris
1716502eff
Improvements on the system theme
2018-09-19 22:42:26 +03:00
Konstantinos Sideris
e9ee29978d
Add context menu option to show the raw message
...
fixes #437
2018-09-12 16:27:25 +03:00
Konstantinos Sideris
19626dbb10
Small refactoring on the EditModal
2018-09-08 13:20:54 +03:00
Konstantinos Sideris
896fe069b6
Use proxy objects on lambdas instead of raw pointers
...
When the object is destroyed the connections will be removed
automatically by Qt.
fixes #433
2018-09-07 12:24:09 +03:00
Konstantinos Sideris
b7362298b0
Make lambda that updates avatar a class method
2018-08-29 16:15:31 +03:00
Konstantinos Sideris
56ee290b03
Add the ability to change the room avatar
...
fixes #418
2018-08-29 16:00:07 +03:00
Konstantinos Sideris
9f43ff876a
Show the room id in the room settings modal
...
fixes #416
2018-08-26 14:56:35 +03:00
Konstantinos Sideris
04c888c44c
Fix crash on logout
2018-08-13 09:35:55 +03:00
Konstantinos Sideris
b06203a34b
Install the bundled spdlog
2018-08-12 10:49:51 +03:00
Konstantinos Sideris
05547086fb
Increase the minimum modal size
2018-08-11 17:55:44 +03:00
Konstantinos Sideris
aa2f6ce77d
Simplify dialog creation
2018-08-11 13:50:56 +03:00
Konstantinos Sideris
aec5587947
Allow user to configure join rules for a room
2018-08-09 16:38:11 +03:00
Konstantinos Sideris
b5b5faa5ec
Consider the scale ratio when scaling down images
...
fixes #393
2018-08-01 21:10:03 +03:00
Konstantinos Sideris
98548b1b8b
Minor modal adjustments
2018-07-22 20:01:12 +03:00
Konstantinos Sideris
3d2e29bfa0
Remove pixel values from modals, use pointSize instead
2018-07-22 18:03:12 +03:00
Konstantinos Sideris
24bad93f6b
Add option to ignore key requests altogether
2018-07-22 16:36:25 +03:00
Konstantinos Sideris
0247b47553
Refactor the room settings menu to look like the user profile
2018-07-22 15:41:06 +03:00
Konstantinos Sideris
6c65213c83
Reuse the profile modal & adjust its spacing relative to the font size
2018-07-21 14:33:35 +03:00
Konstantinos Sideris
83008f44e4
Show device list in user profile & add option to create 1-1 chat
2018-07-20 16:15:50 +03:00
Konstantinos Sideris
d7e5171bfa
Create user profile modal
2018-07-20 12:02:35 +03:00
Konstantinos Sideris
0e814da91c
Move all files under src/
2018-07-17 16:37:25 +03:00
Konstantinos Sideris
21185a44e7
Properly reset the autocomplete anchor when the popup closes
...
fixes #305
2018-07-15 21:26:48 +03:00
Konstantinos Sideris
fde066e236
Use MainWindow instead of QApplication::activeWindow to reference the main window
...
The latter will not always return a valid pointer.
fixes #363
2018-07-15 20:58:10 +03:00
Konstantinos Sideris
33490eddab
Remove the v2 namespace from the http client
2018-07-15 19:09:08 +03:00
Konstantinos Sideris
c0d32ef319
Update CI instructions
2018-06-17 00:23:49 +03:00
Konstantinos Sideris
8e9d210a2a
Rename the log namespace to avoid symbol clash with the math function
...
- Patch the olm repo with a CMakeLists.txt file
2018-06-14 02:28:35 +03:00
Konstantinos Sideris
36cb62748b
Add menu option to enable encryption in a private room
2018-06-12 09:45:26 +03:00
Konstantinos Sideris
b89257a34b
Migrate to mtxclient for the http calls
2018-06-09 16:03:14 +03:00
Konstantinos Sideris
9eb1c496a0
Retrieve the current room state from cache when the edit modal opens
2018-05-18 21:43:58 +03:00
Konstantinos Sideris
4ab42c68f4
Fix crash on unfinished animation & center the edit modal
2018-05-18 21:27:44 +03:00
Konstantinos Sideris
791a9d0a4d
Hide the edit menu when the user doesn't have enough power
2018-05-16 23:30:50 +03:00
Konstantinos Sideris
340c9ab9de
Add menu to modify the name & topic of the room
...
fixes #235
2018-05-16 20:41:15 +03:00
twahm
4bd43780d9
Add read support for room access options ( #324 )
...
- Join rules
- Guest access
2018-05-13 01:31:58 +03:00
Konstantinos Sideris
18061f0600
Use the correct avatar size for HiDPI displays
2018-05-11 16:00:14 +03:00
Konstantinos Sideris
ebed87ea57
Don't use shared pointers for cache
2018-05-08 20:30:09 +03:00
Konstantinos Sideris
156e1e62a6
Fetch user avatars while browsing the member list
2018-05-04 17:59:29 +03:00
Konstantinos Sideris
763330fd3c
Add member list
2018-05-01 19:35:28 +03:00
Konstantinos Sideris
3097037c3d
Add prototype room settings menu
2018-04-30 21:41:47 +03:00
Konstantinos Sideris
2f00fc51bf
Cache refactoring
2018-04-21 16:35:03 +03:00
Konstantinos Sideris
72d5d6d286
Show avatars in the completion popup
2018-03-25 15:59:47 +03:00
Konstantinos Sideris
1b5e18cb1a
Fix CI builds
2018-03-13 08:53:32 +02:00
Konstantinos Sideris
4659d0efc2
Implement user registration with reCAPTCHA
...
fixes #264
2018-03-12 22:23:26 +02:00
Konstantinos Sideris
12a96aae6d
Add some missing references
2018-02-28 12:12:07 +02:00
Konstantinos Sideris
f95998a64b
Be explicit about the captured parameters in lambdas
2018-02-20 17:09:11 +02:00
Konstantinos Sideris
127c52e39a
Scale down the preview image to fit in the application window
...
On macOS the modal has some extra space around the main content
that might make it unusable with a big enough image.
2018-02-19 23:33:11 +02:00
Konstantinos Sideris
1764bacd4b
Move scaleImage() in Utils
2018-02-19 23:32:37 +02:00
Konstantinos Sideris
8b139c32a3
Minor adjustments
2018-02-19 22:09:21 +02:00
christarazi
cd9d1a2ec6
Support audio, video, generic file for pasting ( #220 )
...
* Refactor widget items to use same interface
* Support audio, video, generic file for pasting
* Add utils function for human readable file sizes
* Set correct MIME type for media messages
This change also determines the size of the upload once from the
ContentLengthHeader, rather than seeking the QIODevice and asking for
its size. This prevents any future trouble in case the QIODevice is
sequential (cannot be seeked). The MIME type is also determined at
upload once, rather than using the QIODevice and the underlying data
inside.
* Allow for file urls to be used as fall-back
This fixes an issue on macOS which uses `text/uri-list` for copying
files to the clipboard.
fixes #228
2018-02-18 22:52:31 +02:00
Konstantinos Sideris
9de2db2fb8
Automatically focus on input when opening a dialog
2018-01-16 22:50:47 +02:00
Konstantinos Sideris
7792ca7149
Fix emoji as avatars issue for the receipts
2018-01-16 21:02:29 +02:00
Konstantinos Sideris
020a842aef
Change cache format to not allow duplicate receipts
...
Convert list of receipts to map<userId, timestamp>
2018-01-14 23:37:38 +02:00
christarazi
ddfce136ed
Add support for pasting images into a room ( #180 )
...
fixes #132
2018-01-10 09:52:59 +02:00
Konstantinos Sideris
a7e84b63ac
Remove an extra colon from the receipt time
...
[ci skip]
2018-01-04 10:52:49 +02:00
Konstantinos Sideris
eaf05748ff
Initial support for read receipts
2018-01-03 18:06:29 +02:00
Konstantinos Sideris
1705273bb8
Fix font size inconsistencies
2017-12-21 14:36:05 +02:00
Konstantinos Sideris
544b623512
Add dialog to create rooms
...
fixes #25
2017-12-11 23:00:37 +02:00
Konstantinos Sideris
ef0b0f6879
Add menu to invite users
2017-12-10 23:59:50 +02:00
Konstantinos Sideris
19bae2a2e6
Add gui option for joining rooms ( #25 )
2017-12-10 15:22:01 +02:00
Konstantinos Sideris
eae069ad93
Group emoji and dialogs with namespaces
2017-11-30 20:02:46 +02:00
Konstantinos Sideris
32c8340577
Create directories for related files
2017-11-30 13:53:28 +02:00