summary refs log tree commit diff
path: root/src/Utils.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add an early out cache for event expirationNicolas Werner2023-07-061-5/+44
|
* Fix event expiration not always stopping properly and redacting some wrong ↵Nicolas Werner2023-07-061-11/+22
| | | | state events
* Prevent redactions of ACL and Create events, since Synapse prevents ↵Nicolas Werner2023-07-061-1/+10
| | | | redaction of them anyway
* Fix variable shadowingNicolas Werner2023-07-051-6/+6
|
* Add experimental event expirationNicolas Werner2023-07-051-30/+54
| | | | Currently disabled by default.
* Add some event expiration functionNicolas Werner2023-07-041-0/+199
|
* Fix a few clazy warningsNicolas Werner2023-06-081-7/+9
|
* Make Nheko compile on Qt6Nicolas Werner2023-06-081-1/+1
|
* Adapt to the new inherited variantNicolas Werner2023-04-111-4/+4
|
* Use the new mtxclient special effects refactoringLoren Burkholder2023-04-111-16/+16
|
* Implement unknown msgtype functionalityLoren Burkholder2023-04-081-0/+3
|
* Update spaces events automatically in the backgroundNicolas Werner2023-03-141-2/+178
|
* Evaluate ACLs when calculating viasNicolas Werner2023-03-141-2/+52
|
* Make via implementation closer to the specNicolas Werner2023-03-141-25/+81
|
* Update src/Utils.cppLoren Burkholder2023-03-091-4/+2
| | | Co-authored-by: DeepBlueV7.X <nicolas.werner@hotmail.de>
* Only enlarge emoji if the setting is onLoren Burkholder2023-03-091-1/+5
|
* Make emoji larger in the timeline by defaultLoren Burkholder2023-02-281-1/+1
|
* Get rid of year in license headersNicolas Werner2023-02-211-3/+1
| | | | | | See also: https://daniel.haxx.se/blog/2023/01/08/copyright-without-years/ https://hynek.me/til/copyright-years/
* Make single newlines cause a <br> by defaultNicolas Werner2023-01-311-7/+16
| | | | | | | | | | | | This should match what people expect from a chat application much better. The biggest reason not to do this, is because some people might paste markdown documents. For those people there is now a /cmark command, which disables most of our extensions to cmark, including the newline behaviour. There is a long discussion on the Fediverse and on Github linked below. Mastodon https://fosstodon.org/@deepbluev7/109771668066978726 fixes #757
* Support strikethrough via ~~Nicolas Werner2023-01-281-0/+118
|
* Get rid of shadowing even if the shadowing there is probably the safer solutionNicolas Werner2023-01-281-3/+5
|
* Support simplified spoiler input using || tagsNicolas Werner2023-01-281-68/+211
| | | | relates to #1231
* Fix br tagsNicolas Werner2023-01-271-1/+3
|
* Fix a few minor leaks (or just memory showing up as not freed in tools)Nicolas Werner2023-01-221-2/+3
|
* A whole new year full of excitement and possibilities!Nicolas Werner2023-01-021-0/+1
|
* Fix confetti in the sidebarNicolas Werner2022-12-171-31/+13
|
* lintNicolas Werner2022-10-261-1/+1
|
* Enable -WconversionNicolas Werner2022-10-261-26/+36
|
* VoIP v1 implementation (#1161)Rohit Sutradhar2022-10-141-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Initial commit for VoIP v1 implementation * Added draft of event handlers for voip methods * Added event handlers for VoIP events, added rejectCall, added version tracking for call version for V0 and V1 compatibility * Added call events to the general message pipeline. Modified Call Reject mechanism * Added message delegates for new events. Modified hidden events. Updated handle events. * Updated implementation to keep track of calls on other devices * Fixed linting * Fixed code warnings * Fixed minor bugs * fixed ci * Added acceptNegotiation method definition when missing gstreamer * Fixed warnings * Fixed linting
* Fix infinite loop that can be triggered by some invalid htmlNicolas Werner2022-09-271-1/+5
|
* Make emoji escaping less aggressiveNicolas Werner2022-09-161-1/+7
|
* Attribute values can contain slashesNicolas Werner2022-09-041-9/+16
|
* Allow summary tagNicolas Werner2022-08-201-9/+10
|
* Break http images and implement barebones spoiler support when not in mobile ↵Nicolas Werner2022-08-171-33/+120
| | | | | | | mode see #1042 see #483
* Fix crash when creating link to room previewNicolas Werner2022-07-191-0/+60
|
* Merge pull request #1062 from Nheko-Reborn/perSpaceNotifsDeepBlueV7.X2022-07-161-0/+1
|\ | | | | Per-space notification bubbles
| * Make notification count calculation more efficientNicolas Werner2022-07-161-18/+0
| |
| * Add loud notifications for spacesLoren Burkholder2022-06-291-7/+11
| |
| * Add space notifications to room listLoren Burkholder2022-06-291-0/+15
| |
* | Updated call event namespaces to voipr0hit052022-07-151-3/+3
|/
* Fix centering dialogsNicolas Werner2022-01-291-9/+7
|
* Port usersettings to qmlNicolas Werner2022-01-091-1/+1
|
* Strip variant selector in some casesNicolas Werner2022-01-011-1/+6
| | | | | | fixes #439 Workaround for https://bugreports.qt.io/browse/QTBUG-97401 fixes #810
* Update year in copyright notice to shut up lint jobNicolas Werner2022-01-011-0/+1
|
* Reserve size of some containers we are fillingNicolas Werner2021-12-291-5/+7
|
* Reduce allocations using QStringLiteralNicolas Werner2021-12-291-26/+26
|
* Cleanup remaining clazy issuesNicolas Werner2021-12-281-4/+3
|
* Some qt6 prepNicolas Werner2021-12-281-3/+3
|
* Fix a few clang tidy warningsNicolas Werner2021-12-061-4/+2
|
* Fix sanitizer warning about signed shiftsNicolas Werner2021-12-041-1/+2
|
* Use a more random hash to generate user colorsNicolas Werner2021-11-241-7/+7
| | | | | Fixes an issue where most uses just had their color determined by their username length and distributes the colors a bit more evenly.
* Mark rooms as direct chatsNicolas Werner2021-11-211-0/+63
| | | | | Either by accepting an invite or manually using /converttodm and revert with /converttoroom.
* Make user colors a bit more vibrantNicolas Werner2021-11-191-5/+3
|
* Prevent edits from removing quotes at the beginning of a messageNicolas Werner2021-11-131-5/+8
|
* Change indentation to 4 spacesNicolas Werner2021-09-181-547/+538
|
* Cleanup @room escape logic a bitNicolas Werner2021-08-201-2/+3
|
* Remove additional key requests preference codeJoe2021-07-241-10/+0
|
* Merge master and fix conflictsJoe2021-07-241-1/+1
|\
| * Tweak rainbows slightlyNicolas Werner2021-07-211-1/+1
| |
* | Remove 'respond to key requests' functionalityJoseph Donofry2021-07-151-16/+0
|/
* Strip reply fallback from roomlistNicolas Werner2021-07-131-2/+4
| | | | fixes #630
* Fix linter issueJoseph Donofry2021-07-081-1/+1
|
* Add missing include to UtilsJoe2021-07-081-1/+2
|
* Avoid unnecessary QColor -> QString conversionsJoseph Donofry2021-06-081-4/+3
|
* Fix stray 'a' in @room escapingNicolas Werner2021-05-111-1/+1
|
* Merge branch 'forward_message_feature' of https://github.com/Jedi18/nheko ↵Nicolas Werner2021-04-241-8/+26
|\ | | | | | | into Jedi18-forward_message_feature
| * fix macos build errortargetakhil2021-04-221-6/+12
| |
| * make util strip util functions non-static and move definition to cpp filetargetakhil2021-04-181-0/+18
| |
| * strip reply fallbacks from forwarded messagetargetakhil2021-04-181-8/+2
| |
* | Linkify matrix urisNicolas Werner2021-04-191-0/+2
|/
* Fix exif rotation in unencrypted roomsNicolas Werner2021-04-041-0/+7
|
* Tweak rainbow slightlyNicolas Werner2021-03-281-1/+4
|
* Fix emojis being split by rainbowsNicolas Werner2021-03-281-5/+5
|
* run formatterLordMZTE2021-03-281-1/+1
|
* use QString as buf in rainbowifyerLordMZTE2021-03-281-5/+4
|
* implement requested changesLordMZTE2021-03-281-10/+7
|
* remove incorrect includeLordMZTE2021-03-271-1/+0
|
* use QString to format in rainbow functionLordMZTE2021-03-271-6/+5
|
* rainbow now works with unicode!LordMZTE2021-03-271-7/+15
|
* use qtextboundary finder to rainbowify. (not working for unicode chars yet)LordMZTE2021-03-271-5/+13
|
* fix size typeLordMZTE2021-03-271-1/+2
|
* add /rainbow commandLordMZTE2021-03-261-4/+75
|
* Clean up notification code a bitNicolas Werner2021-03-171-0/+29
|
* Switch readImage to take a reference instead of a pointerLoren Burkholder2021-03-171-2/+2
| | | | There was nowhere that an actual pointer was passed, and I wanted to do references for something else.
* Create function for processing whether a message is a replyLoren Burkholder2021-03-171-0/+7
|
* Reduce allocations when escaping emojiNicolas Werner2021-03-141-6/+15
|
* Add linebreaks to fingerprintNicolas Werner2021-03-061-3/+7
|
* Update license headersNicolas Werner2021-03-051-0/+4
|
* Fix wrong font used in emoji escapeNicolas Werner2021-02-091-1/+1
|
* make linttrilene2021-02-071-1/+2
|
* Use UserSettings where possibleLoren Burkholder2021-02-041-11/+3
|
* Fix emojis with fe0f in the middleNicolas Werner2021-02-011-2/+1
|
* lintNicolas Werner2020-12-251-2/+3
|
* Fix some compiler warningsNicolas Werner2020-12-251-11/+11
|
* Fix black cat emojiNicolas Werner2020-12-151-2/+3
|
* lintNicolas Werner2020-12-081-2/+2
|
* Add gitlab ciNicolas Werner2020-11-271-1/+1
|
* Fix race when reading members from dbNicolas Werner2020-11-251-15/+15
|
* Add file uploadingNicolas Werner2020-11-251-2/+3
|
* clang-formattrilene2020-11-131-1/+1
|
* Supress unused var warning for STUN_SERVER (used only if gstreamer supported)Nicolas Werner2020-10-301-1/+1
|
* Optimize buildNicolas Werner2020-10-271-1/+1
|
* Fix infinite pagination properly now.Nicolas Werner2020-10-231-1/+1
|
* Trade CPU usage for 30MB of members in RAMNicolas Werner2020-10-221-1/+1
|
* Support voice callstrilene2020-07-101-16/+24
|
* Fix Qt5.15 issuesNicolas Werner2020-06-051-2/+2
| | | | fixes #214
* Added an optional feature to show bigger emoji-only messages with 3 or less ↵lkito2020-05-211-3/+9
| | | | emoji
* Optimize RoomList sortingNicolas Werner2020-04-301-3/+5
| | | | | Keep the almost sorted list around and sort by the raw timestamp value instead of doing the expensive toMSecSinceEpoch conversion.
* Respect exif rotation of imagesNicolas Werner2020-04-261-0/+11
| | | | | | Sometimes thumbnails still have the wrong dimensions, as they are scaled to fit inside a rectange of the reported size in the image. Not sure, who is wrong there, the media repo or we.
* Merge branch 'master' into decrypt-sidebarJoseph Donofry2020-04-231-0/+6
|\
| * Terminate user color calculation, when no solution can be foundNicolas Werner2020-04-221-0/+6
| | | | | | | | fixes #172
* | Fix encrypted messages not showing a user in the sidebarNicolas Werner2020-04-231-2/+3
|/
* Fix stuck unread messages by storing state events in the dbNicolas Werner2020-02-241-2/+2
| | | | | | This may increase the db size by a factor of 1000 in the worst case and it will need some fixes, when we decide to not show some events in the timeline, but it should work for now.
* Fix bug in html tag escapingNicolas Werner2020-02-061-3/+2
|
* Remove more unneeded headersNicolas Werner2020-01-311-1/+0
|
* Optimize includes a bitNicolas Werner2020-01-311-13/+19
|
* Enable ban and kick button in UserProfile (and try to fix centering)Nicolas Werner2020-01-301-1/+2
|
* Don't send useless formatted_bodiesNicolas Werner2020-01-271-0/+4
|
* Remove translations from reply fallbackNicolas Werner2020-01-241-9/+9
|
* Minor tweak to one instance of QSettings not necessarily using the same ↵Joseph Donofry2020-01-231-1/+1
| | | | settings as everything else
* Increase emoji rangeNicolas Werner2020-01-211-1/+1
|
* Fix colors in typing display, when username contains emojiNicolas Werner2020-01-211-1/+4
|
* Improve emoji escapingNicolas Werner2020-01-211-5/+15
|
* Linkify links before sendingNicolas Werner2020-01-211-3/+24
|
* Don't require Qt5.12 just for QByteArray::compareNicolas Werner2020-01-161-2/+2
|
* Escape blacklisted html tagsNicolas Werner2020-01-141-13/+43
|
* Reduce Cache.h includes further via one forward declarationNicolas Werner2019-12-151-0/+1
|
* Reduce overhead of Cache.hNicolas Werner2019-12-151-1/+1
|
* Update to c++17Nicolas Werner2019-12-141-36/+31
|
* Make replies format nicerNicolas Werner2019-11-231-4/+1
| | | | Also lays a bit of groundwork for better reply rendering
* Fix translation of roomlist message previewNicolas Werner2019-11-231-5/+0
| | | | | | | | This also makes long messages unreadable, because we don't shorten long usernames anymore. We may eventually want to do that again, but it is hard with translations and we probably want to shorten the displayname more, as before this change the message was only ever as long as the timestamp, which is usually just 5 characters...
* Add native themeing to QML (where possible)Nicolas Werner2019-11-231-13/+23
|
* Fix QML emojisNicolas Werner2019-11-231-3/+2
|
* escape html before parsing commonmarkrnhmjoj2019-09-251-1/+16
|
* Use 'system' theme as default if QT_QPA_PLATFORMTHEME is setJoseph Donofry2019-08-101-6/+13
| | | | | | | On first launch, before the user has configured any settings, check the value of the QT_QPA_PLATFORMTHEME environment var. If it is set, use the system theme as the default instead of the light theme. This fixes #72.
* Try to localise timestampsNicolas Werner2019-07-281-10/+10
| | | | | | | | 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
* Fix bug with emoji font setting and clean lintingJoseph Donofry2019-07-261-0/+23
|
* Fix deprecated function call issues with Qt 5.13Joseph Donofry2019-07-041-7/+40
| | | | Update to mtxclient 0.3.0
* Fix santizize=undefined warning (overflow)Nicolas Werner2019-06-271-3/+3
|
* Further Improve Reply FunctionalityJoseph Donofry2019-06-131-0/+14
| | | | | | | Quoted replies now include matrix.to links for the event and the user. UI Rendering has been (slightly) improved... still very WIP. Restructured the reply structure in the code for future usability improvements.
* Simplify linkifyMessageNicolas Werner2019-05-011-58/+2
| | | | | | | | | | | | | | | | | Parsing html as xml has inherent problems, most notable there are many matrix clients that don't escape ampersands in urls of mx-replies, etc. (See issue #18) This also removes the replacement of <mx-reply> as it isn't strictly needed. Also the QRegExp is replaced with the Qt5 QRegularExpression for perfomance and because it supports lookahead and lookbehind. I'm pretty sure that the original code also replaced href="" with href=\"\", which was probably wrong, but I'm not to sure about that. Fixes #18
* Improve color generation performanceredsky172019-02-081-9/+0
| | | | | | Colors are generated asynchronously now and the TimelineItem is updated when the color generation finishes. This allows the UI to stay responsive while new colors are being generated.
* Update user colors to use Cache vs Utilsredsky172019-01-261-22/+0
| | | | | | | User colors are now stored in cache. This is consistent with other similar variables. I think there's a bug right now where it doesn't properly refresh colors for the TimeLineItem when the theme is changed.
* Author Color Fixesredsky172019-01-201-0/+24
| | | | | | | | | | Author color is now cached so that it will not be re-calculated each time a new message is posted. This cache gets cleared when the theme is changed. Additionally, the author color is now automatically refreshed when the theme is changed, fixing the issue where you had to change rooms before the colors would switch.
* Update user id color generationredsky172019-01-201-60/+72
| | | | | | | | | | | | | | | Update the author color generation. Now, instead of generating an entire hex string based on the user id, the user id instead is used to generate a hue value. After this hue value is created, there is some logic to tweak first the lightness and then saturation values to achieve a readable color (in contrast to the background). This change makes it so that user colors will not vary as wildly between the different themes. The values still are not cached and still do not update initially when the theme is changed. Both of these things will be resolved.
* Modified the code that generates user's colors so that it willredsky172019-01-181-5/+105
| | | | | | | | | | | | | work regardless of the theme choices the user makes. The code now incorporates the contrast between the background color and the color generated by the user_name when picking colors. It currently has two 'big' issues: 1. Colors are not cached. I am planning on adding a QHash for this a little later. This should improve performance by not calculating the color for the same users over and over and over again. 2. Theme changes do not trigger the colors to get refreshed. Currently, you will have to switch to a different room and back to get the colors to refresh.
* Make the author text slightly large.redsky172019-01-181-0/+17
| | | | Add author color generated based on user id.
* Remove the code that removed paragraph tags from markdown -> html.redsky172019-01-181-4/+0
| | | | | | | This fixes #2, but reverts mujx#438. I do not think mujx#438 was a valid issue, as it complained about the display of valid HTML on riot, which speaks more to how Riot styles things than about an issue in nheko itself.
* Adjustments for the minimized sidebarKonstantinos Sideris2018-10-071-0/+14
|
* Add option to configure the font sizeKonstantinos Sideris2018-10-011-0/+12
| | | | fixes #161
* v0.6.0Konstantinos Sideris2018-09-211-6/+7
|
* Add method to center widgets & clean up unused headersKonstantinos Sideris2018-09-211-0/+15
|
* Improvements on the system themeKonstantinos Sideris2018-09-191-0/+14
|
* Fix compile warningsKonstantinos Sideris2018-09-181-3/+5
|
* Mark unread rooms as such in the room listKonstantinos Sideris2018-09-131-0/+1
| | | | fixes #313
* Temporary fix to work with mx-reply tagsKonstantinos Sideris2018-09-131-3/+12
|
* Strip paragraph tagsKonstantinos Sideris2018-09-131-6/+6
| | | | fixes #438
* Trim whitespace from text messagesKonstantinos Sideris2018-09-121-12/+8
|
* Enable html attributesKonstantinos Sideris2018-09-121-1/+8
|
* Switch to libcmarkKonstantinos Sideris2018-09-111-5/+10
|
* Initial support for sending markdown formatted messagesKonstantinos Sideris2018-09-071-0/+23
| | | | fixes #283
* Fix double href links on username pillsKonstantinos Sideris2018-09-071-0/+51
|
* Merge matrix-structs into the client libKonstantinos Sideris2018-09-011-19/+19
|
* Only call /sync when retrying initial sync (#422)Konstantinos Sideris2018-08-301-3/+1
|
* Add device ID and device fingerprint to settings page like in Riot. (#407)Rudi Floren2018-08-211-0/+15
|
* Remove pixel ratio from image scalingKonstantinos Sideris2018-08-201-6/+0
|
* Consider the scale ratio when scaling down imagesKonstantinos Sideris2018-08-011-1/+31
| | | | fixes #393
* Use double instead of int when scaling pixmaps (#393)Konstantinos Sideris2018-07-301-1/+3
|
* Add option to specify the scale factorKonstantinos Sideris2018-07-221-0/+17
| | | | | | fixes #357 fixes #335 fixes #230
* Add option to ignore key requests altogetherKonstantinos Sideris2018-07-221-0/+26
|
* Show device list in user profile & add option to create 1-1 chatKonstantinos Sideris2018-07-201-0/+8
|
* Move all files under src/Konstantinos Sideris2018-07-171-0/+188