Commit Graph

190 Commits

Author SHA1 Message Date
Alexandra Betouni 08a8c0cc98 fix(desktop/chatinput) Adding custom syntax highligher for text formatting in chat input
Closes #39
2023-02-09 12:48:11 +01:00
Sale Djenic f0e3f04994 fix(@desktop/general): Changing System Appearance on the fly is not working
This is corresponding dotherside part of the issue 1725.

So far we had kind of a memory leak, cause objects added to the filter were not
deleted ever. When the app is closing, it just removes filters, but doesn't
delete them.

I faced a logical issue, that we were sending qmlengine pointer to the
installEventFilter method, instead object which may or may not rely on the
qqmlengine instance, that is fixed also.

Fixes: #1725
2023-02-09 12:48:11 +01:00
Andrei Smirnov cba2e276b2 Introduced SingleInstance class 2023-02-09 12:48:11 +01:00
Andrei Smirnov 8c095ec628 feat: single instance check for StatusWindow 2023-02-09 12:48:11 +01:00
Richard Ramos 1c3bbe1b8e feat: add parameter to make the translation dynamic or not 2023-02-09 12:48:11 +01:00
B.Melnik 0d4916d033 fix: show status window in center 2023-02-09 12:48:11 +01:00
Andrei Smirnov d62b8ee921 Removed cmdline args passing to Qt 2023-02-09 12:48:11 +01:00
Andrei Smirnov fd1ed3eba8 Passing argc, argv to QGuiApplication 2023-02-09 12:48:11 +01:00
Andrei Smirnov 387f002c63 feat: QGuiApplication supporting icon() and installEventFilter() methods 2023-02-09 12:48:11 +01:00
B.Melnik 4be2340d3e feat: Add cutsom window without titlebar for osx 2023-02-09 12:48:11 +01:00
RichΛrd a1b7e70404 Removing unneeded file 2023-02-09 12:48:11 +01:00
RichΛrd 1b71929353 Removing unneeded file 2023-02-09 12:48:11 +01:00
RichΛrd be6a6167fe Removing unneeded file 2023-02-09 12:48:11 +01:00
Michael Bradley, Jr df8838703d fix: ..types.h -> ..Types.h
Some OS filesystems are case-sensitive.
2023-02-09 12:48:11 +01:00
B.Melnik fd4fc7c46d fix: move dock clicker too other files 2023-02-09 12:48:11 +01:00
Boris Melnik bd668c0dfe Update README.md 2023-02-09 12:48:11 +01:00
Eric Mastro 1471e1c1a4 feat: add DockClicker event filter
Add an event filter to `qApp` that can detect a dock icon click (in macos) when the main window is hidden or closed.

Co-authored-by: Boris Melnik <82511785+borismelnik@users.noreply.github.com>
2023-02-09 12:48:11 +01:00
Michael Bradley, Jr 37ebdf58b9 fix: improve defensive cstring copying
Intended to prevent Nim from inopportunely garbage collecting cstrings passed
through signal_handler/dos_signal as they make their way back to the main
thread
2023-02-09 12:48:11 +01:00
Jacek Sieka 7793f6b6ec long long support
to correctly handle `int` vs `cint` in nim
2023-02-09 12:48:11 +01:00
emizzle a01981ed87 feat: Add QNetworkAccessManager and clearConnectionCache 2023-02-09 12:48:11 +01:00
Richard Ramos acf240f2a6 Creating a cache for network requests 2023-02-09 12:48:11 +01:00
Richard Ramos edb4b79e1b Make the scheme and path prefix optional 2023-02-09 12:48:11 +01:00
Richard Ramos c6081720e7 feat: get host, and update url 2023-02-09 12:48:11 +01:00
Richard Ramos 956f51d38a feat: obtain url from user input 2023-02-09 12:48:11 +01:00
Richard Ramos f2590b103f Add function to escape html 2023-02-09 12:48:11 +01:00
Richard Ramos 895e94d5e1 Add function to strip html tags 2023-02-09 12:48:11 +01:00
Richard Ramos 7a286e548e fix: creating a copy of signalstring 2023-02-09 12:48:11 +01:00
Richard Ramos 0b41a9b86d feat: specify tmp dir for images 2023-02-09 12:48:11 +01:00
Richard Ramos d613014606 feat: resize images 2023-02-09 12:48:11 +01:00
Jonathan Rainville 2dfb92a160 feat: add translation function on the engine 2023-02-09 12:48:11 +01:00
Richard Ramos 3cb8c466a4 Enable OpenGL 2023-02-09 12:48:11 +01:00
Richard Ramos 1d009fa376 print connection types 2023-02-09 12:48:11 +01:00
Richard Ramos 2d556fbc42 feat: create networkconfigurationamanager 2023-02-09 12:48:11 +01:00
Pascal Precht f2ce61142b feat: add clipboard support 2023-02-09 12:48:11 +01:00
Richard Ramos 0229edc410 feat: appname 2023-02-09 12:48:11 +01:00
Richard Ramos cac8fe48b2 feat: allow setting app icon 2023-02-09 12:48:11 +01:00
Richard Ramos 18cc92e028 feat: Enable HDPI 2023-02-09 12:48:11 +01:00
Ștefan Talpalaru e4d3e5f2bf .gitignore: add *.dylib 2023-02-09 12:48:11 +01:00
Ștefan Talpalaru 202f5cb7d6 more CMake options
- generic .gitignore entries for CMake projects
- generate a pkg-config file
2023-02-09 12:48:11 +01:00
Richard Ramos 18c55c5dcf feat: add signal handler for status-go 2023-02-09 12:48:11 +01:00
Michał Cieślak 561c60a0d0 Original dotherside repository up to 4d0d6a353c33ff2227b83562a127b3514a7e2169 2023-02-09 12:48:11 +01:00
Michał Cieślak 121c62bd9a Remove submodule vendor/DOtherSide 2023-02-09 12:48:11 +01:00
Lukáš Tinkl 7ed5b0d0d6 fix(chat): Download image is saving to wrong folder
- fetch latest dotherside for the fix
- minor cleanup

Fixes #9307
2023-01-28 17:44:23 +01:00
Alex Jbanca 50b5442818 chore: bump vendor/DOtherside 2023-01-18 10:17:45 +02:00
Michał Cieślak 22da265d78 feat(Monitoring): Backend's properties and models visualization
Closes: #8787
Closes: #8790
2023-01-16 14:46:58 +01:00
Michał Cieślak e3e99c6a48 feat(general): Initial setup for app monitoring tool
Closes: #8786
2023-01-13 13:47:08 +01:00
Lukáš Tinkl 6f1ecb9c8c fix(StatusChatInput): improve code highlighting in code snippet/blocks
- make the bg/fg color follow our current Style/Theme colors

Fixes: #8649
2023-01-10 15:21:45 +01:00
mprakhov a7a69e1320 fix(@desktop/chats): restore last opened chat during app launch 2023-01-03 18:02:42 +02:00
Lukáš Tinkl 668ea868c4 fix(notifications): The sound of notifications is harsh and annoying
Use logarithmic sound volume scale instead of linear when interpreting
the sound volume value

TLDR; we were literally overblowing the speakers with absolute sound
volume levels; for the whole story I recommend reading:
https://www.dr-lex.be/info-stuff/volumecontrols.html

Also play a sound preview when changing the volume in Settings

Needs https://github.com/status-im/dotherside/pull/83

Fixes #8426
2022-12-12 11:39:32 +01:00
Michał Cieślak a6c3af97cf chore: bump vendor/DOtherside
to fix the creation of many temporary QNAMs
and potential UB

Closes #8683
2022-12-08 12:12:08 +01:00
Lukáš Tinkl 9391cabcba chore: bump vendor/DOtherside
to fix the QNAM memory/fd leaks

Closes #8667
2022-12-07 10:00:22 -05:00
Michal Iskierko 9ca058c6ef chore(@desktop): Update DOtherside
Fix #6179
2022-11-28 10:41:27 +01:00
Jonathan Rainville da6524b840 chore: up DOtherSide version to get Windows logs
Fixes #8296
2022-11-17 16:14:38 -05:00
Igor Sirotin f022e02efe fix(Chat): Added group/channel name to notifications title 2022-11-17 13:04:06 +03:00
Lukáš Tinkl 48f5a9d256 fix(NicknamePopup): add support for Unicode nicknames
- do not restrict NicknamePopup's regexp to ASCII characters
- a similar thing could be done to the user's DisplayName but currently
  that's blocked on status-go side
- uses RXValidator from dotherside

Needs status-im/dotherside/pull/74
Fixes #8115
2022-11-15 11:42:33 +01:00
Lukáš Tinkl 813dbc57c0 feat: notification through notify-send on Linux
plus some minor UI changes in the Notifications settings; notably
toggling the exemptions was broken

Closes #2520
2022-10-13 17:28:46 +02:00
Lukáš Tinkl 50b49446f0 fix: abort startup on QML errors
exit() the app immediately after encountering QML errors on startup
(updates status-desktop's DOtherSide submodule to status-im/dotherside#69)

Closes #7013
2022-08-17 16:06:11 +02:00
Patryk Osmaczko 4303d674dd feat(Makefile): add QML_DEBUG and QML_DEBUG_PORT options
closes: #6973
2022-08-11 19:53:08 +02:00
Patryk Osmaczko c1872b4e1d bump DOtherSide 2022-07-22 09:03:57 +02:00
Iuri Matias c292956f8e chore(@desktop): update dotherside 2022-06-14 16:44:36 -04:00
Alexandra Betouni 50722148c6 fix(StatusChatInput): Updated text mark down rules and formatting
Closes #6030
2022-06-14 16:44:36 -04:00
Michal Iskierko 31a8f1cee8 chore(internal): Bump DOtherside version
Issue #4922
2022-05-26 14:16:00 +02:00
Sale Djenic e83e5670a4 feat(@desktop/contacts): support sending contact request to chat key
Fixes #5175
2022-03-30 18:35:49 +02:00
Khushboo Mehta 4b9b93a873 fix(@desktop/chat): Downlaoding/Copying an image from chat crashes the app
The issue was caused because the data being passed to the UI is now a URL and not image data.

Added support to download/copy image by URL

fixes #5194
2022-03-30 10:06:52 +02:00
Alexandra Betouni f8aebda0dd fix(statusChatInput): update mentions behavior when text is pasted
Fixed to update mentions positions when text is pasted or
added before those

Closes #4867
2022-03-03 15:00:51 -05:00
Richard Ramos e46f3bdad1 chore: bump dotherside 2022-02-24 10:47:41 -04:00
Richard Ramos ae09dfb04b feat: use http server for images and identicons 2022-02-21 17:30:50 -04:00
Sale Djenic 6186bf9c8c fix(@desktop/general): app/os notifications
Fixes #4409
2022-02-21 22:01:19 +01:00
Sale Djenic 6e3b065d34 refactor(@desktop/general): app sections handled within main module 2022-02-01 11:32:28 +01:00
Iuri Matias 00adec07c2 bump dotherside & nimqml 2021-09-20 11:37:30 -04:00
Iuri Matias 83e86a6568 bump dotherside & nimqml 2021-09-20 11:37:30 -04:00
Iuri Matias 56116709b6 bump dotherside & nimqml 2021-09-17 12:47:52 -04:00
Sale Djenic 8af104a16e feat(@desktop/onboarding): support (optionally) OS keychain to login password
This feature works for MacOs only, for now.

On login, whether new or already created user may select between options:
"Store" - store password to the Keychain
"Not now" - don't store it now, but ask next time again
"Never" - don't store them ever and don't ask again

Selected preference may be changed later in:
`ProfileSettings > Privacy and security > Store pass to Keychain`

On the next app run, if `Store` was selected, a user will be asked to confirm
his identity using Touch Id in order to log in the app. If any error happens
he will be able to login using password.

Fixes: #2675
2021-09-17 12:45:34 -04:00
Sale Djenic e0c53b7012 refactor(@desktop/general): managing local settings added on the nim side
From now on we are able to access local settings (settings and global settings)
on the nim side, not only through the qml.

This change is required as part of the feature issue-2675.
2021-09-17 12:45:34 -04:00
Iuri Matias 65cce54443 bump dotherside 2021-09-16 16:54:16 -04:00
Anthony Laibe 5ce06a94cc feat(@desktop/chat): download messages
fixes #3508
2021-09-16 16:37:58 -04:00
B.Melnik d3c9564d91 feat(Spellchecking): Add bottle for spellchecking
Usage:

```qml

SpellChecker {
   id: spellchecker
   lang: "en"
}

```

Closes: #3442
2021-09-15 15:04:26 -04:00
Iuri Matias df29177389 bump dotherside and nimqml 2021-09-15 14:30:34 -04:00
Andrei Smirnov d159c0e61c feat(@desktop/deep-links): integrated deep links with single-instance IPC 2021-09-15 14:30:34 -04:00
Andrei Smirnov 1418306d6b Bumped DOtherSide 2021-09-15 12:18:09 -04:00
Andrei Smirnov 8f9c46bfef Bumped DOtherSide submodule version 2021-09-07 14:56:48 -04:00
Sale Djenic a591e91a2e fix(@desktop/general): clicking push notification does expand the app but does not open correct channel/chat
Logic for adding os notifications for Windows and  MacOs added.

Fixes: #2996
2021-09-06 16:39:37 -04:00
Iuri Matias 4dad55aad1 bump dotherside & nimqml 2021-09-02 15:58:13 -04:00
Andrei Smirnov f74d1a67a5 fix(@desktop): various UI scaling fixes 2021-09-02 15:58:13 -04:00
Iuri Matias a3ab31edba bump vendor 2021-08-19 16:26:59 -04:00
Sale Djenic e2628338de feature(@desktop/chat): implement search results for communities, channels
Added a part for fetching messages from multiple chats/channels/communities.

Fixes: #2934
2021-08-19 16:26:59 -04:00
Iuri Matias 8676533339 bump dotherside & nimqml 2021-08-19 10:35:09 -04:00
Khushboo Mehta 8caf95aace feat(MessageContextMenu): Allow Copy and Download Image
Added copy and download Image functionality on right click of an image or its preview

closes #2672
2021-08-19 10:23:18 -04:00
Iuri Matias c43d0149ee bump dotherside 2021-08-17 12:20:08 -04:00
Alexandra Betouni 581557cf7e fix(desktop/chat)Adding custom syntax highligther to StatusChatInput
And disabling all previous text formatting

Closes #2920
Closes #3063
2021-08-17 12:20:08 -04:00
Sale Djenic 04ca90a7d0 fix(@desktop/general): Changing System Appearance on the fly is not working
App is responsive to the OS theme change event.
Now we're following system set theme when the app is started.

Corresponding part on the side on nimqml is added.

Corresponding part on the side on dotherside is added.

On the side of dother side we had kind of a memory leak, cause objects added to
the filter were not deleted ever. When the app is closing, it just removes
filters, but doesn't delete them.

I faced a logical issue, that we were sending qmlengine pointer to the
installEventFilter method, instead object which may or may not rely on the
qqmlengine instance, that is fixed also.

Fixes: #1725
2021-08-16 16:27:14 -04:00
Sale Djenic 662d20b7ac fix(@desktop/general): right click the icon on the dock and press quit doesn't quit the app (macos)
This issue is reproducible on the app only if you're not logged in yet.
The issue is fixed mostly on the side of dotherside.

Fixes: #3112
2021-08-16 13:35:58 -04:00
Iuri Matias 60bb622159 bumpb dotherside & nimqml 2021-08-05 15:12:34 -04:00
Richard Ramos 481184df25 fix: disable dynamic translations on linux 2021-08-05 15:12:34 -04:00
Sale Djenic 4ba08f02a5 Rebasing issues fixed (#3005) 2021-08-05 14:35:46 -04:00
Sale Djenic 74d868ab92 feature(@desktop/chat): implement search on sqlcipher (status-go side)
Searching messages by some term for a specific channel is added on the side of status-go and an
appropriate part on the side of nim is developed accordingly.

Fixes: #2912
2021-08-05 14:35:46 -04:00
Sale Djenic fbb9409b5e Submodules updated, after rebase. 2021-08-04 15:49:50 -04:00
Sale Djenic f0c605936d feature(@desktop/chat): implement search on sqlcipher (status-go side)
Searching messages by some term for a specific channel is added on the side of status-go and an
appropriate part on the side of nim is developed accordingly.

Fixes: #2912
2021-08-04 15:49:50 -04:00
Iuri Matias 3470583fd4 bump dotherside & nimqml 2021-07-23 13:22:04 -04:00
Andrei Smirnov 201a87d052 Updated submodules and fixed SystemTrayIcon menu. 2021-07-23 13:22:04 -04:00