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.
7 years ago
Konstantinos Sideris
1764bacd4b
Move scaleImage() in Utils
7 years ago
Konstantinos Sideris
8b139c32a3
Minor adjustments
7 years ago
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
7 years ago
Konstantinos Sideris
86280098b4
Implement server-side notification count
7 years ago
Konstantinos Sideris
ba8faa357f
Remove empty destructors
7 years ago
Konstantinos Sideris
ddcc0f7f60
Generate a date separator before local messages
7 years ago
Chris Tarazi
2dcc01633e
Apply fixed width for checkmark for all messages
7 years ago
Chris Tarazi
a15079c68f
Fix #217 : create space for checkmark beforehand
7 years ago
Konstantinos Sideris
b1f232bf86
Render messages received by `/messages` on demand
7 years ago
Konstantinos Sideris
86aa409c1f
Register timeline item so that it will be available
7 years ago
Konstantinos Sideris
1fad9398fc
Use more stl containers & minor refactorings
7 years ago
Konstantinos Sideris
2274642f12
Show the scroll-down button when showing the timeline
7 years ago
Konstantinos Sideris
26540bd120
Hack to work around layout flickering when adding new timeline items
7 years ago
Konstantinos Sideris
c4fa8c844d
Add a checkmark to messages that have been received by the server ( #93 )
7 years ago
Konstantinos Sideris
dfeb0c833a
Move timestamps to the right
7 years ago
Konstantinos Sideris
396becbaa7
Properly assign default value to QSharedPointer for Qt5.7
...
[ci skip]
7 years ago
Konstantinos Sideris
daabb40bed
Use Q_NULLPTR to be compatible with qt5.7
...
fixes #199
7 years ago
christarazi
ddfce136ed
Add support for pasting images into a room ( #180 )
...
fixes #132
7 years ago
Konstantinos Sideris
953634c9b5
Enable read receipts on messages sent through nheko
7 years ago
Konstantinos Sideris
983aea7c76
Create widgets on demand for messages added to the end of the timeline
7 years ago
Konstantinos Sideris
eaf05748ff
Initial support for read receipts
7 years ago
Konstantinos Sideris
1ab55d4732
Add date separator in the timeline
...
fixes #157
7 years ago
Konstantinos Sideris
9d763c4de9
Don't keep fetching history on non-visible timelines
...
If the user switched to another timeline before the current timeline
filled up with messages, nheko would keep fetching history.
Now it will check periodically if the timeline became visible so
it can decide whether or not to stop fetching history.
7 years ago
Konstantinos Sideris
ece20dd917
Add rounded corners to inline images
7 years ago
Konstantinos Sideris
a605e4486f
Migrate to matrix-structs for event and response parsing
7 years ago
Konstantinos Sideris
f4f78b1d8a
Add basic support for m.video messages
...
fixes #115
7 years ago
Konstantinos Sideris
5573548fb1
Allow audio clip uploads
7 years ago
Konstantinos Sideris
432a2e1354
Add inline audio clip player (m.audio) ( #143 )
7 years ago
Konstantinos Sideris
32c8340577
Create directories for related files
7 years ago