1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-07-03 15:15:27 +02:00
Commit graph

1251 commits

Author SHA1 Message Date
Sébastien Blin
4a08775082 videomanager: follow API changes
Use return value of registerSinkTarget

Change-Id: Ibc7e8076a9446175d173b10aff18255893b1a8f7
2022-07-16 13:45:10 -04:00
Sébastien Blin
f1be2b9f57
configuration_manager: remove unused API
Change-Id: I6abaede26925fca5c184d8981e5b13e51b4213f7
2022-07-15 16:17:02 -04:00
Sébastien Blin
ccd6b01da6
misc: fix typo
Change-Id: I582a3a15474ef38cfd8b35a37e69cb5f4316f27d
2022-07-15 13:04:09 -04:00
Sébastien Blin
69002fb32a
storagehelper: replace Qt's bugguy method by std
mkdir(".") seems to fail in /tmp but the std wins.

Change-Id: Ic6948255bc57c489d976bcbc3666958f96a7fca5
2022-07-15 12:05:53 -04:00
Fadi SHEHADEH
3640456eec about Jami: window style and content
- added possibility to scroll
- limited scrollbar height
- excluded close button from columnlayout
- managed zoom

Change-Id: I548ff899a5ff47dc37e698807d75343a34ae3f63
Gitlab: #731
2022-07-14 14:41:09 -04:00
Amin Bandali
03c813c829 cmake: use CMAKE_CXX_COMPILER_VERSION for checking GCC C++ version
The CMAKE_<LANG>_COMPILER_VERSION variables have been available in
CMake for many years, so let's use them.

Change-Id: I133b2bf9ea4ea5a50b178b75ca2d3b796a0574aa
2022-07-13 09:19:33 -04:00
Sébastien Blin
35b92aa3a4
misc: cleanup
Change-Id: Ie8124ce30e81ae47c92837dfe339a494139f7f36
2022-07-13 09:17:17 -04:00
Jenkins
0cbb156851 i18n: automatic bump
Change-Id: I91d5ccbe71e0f94e78d555675a7e31146d664548
2022-07-12 18:53:20 -04:00
Sébastien Blin
d74d57fb79 calladapter: be able to maximize a specific screen instead uri
https://git.jami.net/savoirfairelinux/jami-project/-/issues/1429

Change-Id: I341ae5dcce9c69eaec636271315b5403426e44bc
2022-07-12 16:53:41 -04:00
Sébastien Blin
d9aee635a7 misc: drop 'new' prefix from model names
Change-Id: Idc960c96e4647dbb6f8c1d64f545fe25c80bbaa5
2022-07-12 10:43:59 -04:00
Sébastien Blin
553bd421ff conferences: support multistream
In a conference, with this patch, the user is able to share
a media while keeping the camera. The mute button for the camera
only control the camera and we use requestMediaChange to add medias.
To stop sharing a media, the user will click on the dedicated button.
If the peer is not compatible with multistream, the behavior will
be the same as before

https://git.jami.net/savoirfairelinux/jami-project/-/issues/1429
Change-Id: If5e0634be6d0d06900ad82554b32a524fd4db36c
2022-07-11 11:43:43 -04:00
Sébastien Blin
21431c80c9 conversationmodel: avoid loading loop if no messages
Also avoid any potential crash if for whatever reason no interactions
is detected

Change-Id: I7738e3f39cd626ef4fc64612f71d55e73d567fa2
2022-07-11 11:43:30 -04:00
Sébastien Blin
47af6ffc03 aboutpopup: fix layout for small window
Change-Id: Iff4226180b0aa9c5ce4ae12849cd290451b6a939
GitLab: #765
2022-07-11 11:41:24 -04:00
Sébastien Blin
54687078a7 conversationmodel: avoid duplicated requests when receiving a call
Because the call and the conversation's requests are not related,
we can receive a call before the conversation's request. In this
case, a duplicate was created when accepting the call.
Moreover, accepting a call is now separated from accepting a contact,
like the android client (and accepting a conversation needs an explicit
action from the user).

Change-Id: I7c3eb34b7e121b63f1b8c99d084a5165054670d5
2022-07-11 11:03:29 -04:00
Sébastien Blin
5cf6125fd0 chatviewheader: show description with title
For multiple swarms, the description will be shown from the profile,
for core dialogs, the best Id is used.

Change-Id: Ieb7d5f143c1a85c4c629a5a8a03850fa1ebddf63
2022-07-11 10:53:49 -04:00
Sébastien Blin
9adddd0d89 messagesadapter: better file's detection
use QMimeDatabase to detect file's extension.

GitLab: #738
Change-Id: I47c74ef3011881d9694c9c54ab4de7f8a2af86e3
2022-07-11 08:56:54 -04:00
Sébastien Blin
d490e84089 preview: avoid to parse too big pages and non text files
Change-Id: Ie2550f6ede051b7b7a937cc3230aacdea4fa01db
2022-07-08 10:26:08 -04:00
Sébastien Blin
300ac17db3 contactmodel: rework ban status
And do not ban contact when removing conversation.

Change-Id: Ia76c76b265dd2a9d7d3cc8e2f869bf74fd3cbe63
2022-07-05 11:02:49 -04:00
Jenkins
c73d7da1f7 i18n: automatic bump
Change-Id: Ie08f9cfec591ef74128cf0dfaf04e9de799e7526
2022-07-04 16:44:12 -04:00
Fadi SHEHADEH
e821709728 about Jami: window style and content
- changed flickable window to rectangle
- font size
- window radius
- hyperlink to company name
- changed escription
- added close button
- deleted html reformating after file load and added it directly to the html file containing the credits

Change-Id: I7805ddead153c9be4d66e7789e754ba2c3cc20a7
Gitlab: #731
2022-07-04 12:03:44 -04:00
Sébastien Blin
5921740321 avatarregistry: avoid un-necessary updates
Only update the avatar when the profile changes.

Change-Id: I2b12d31f7a2e379093fe8e900233ebfbd8ab8974
2022-06-30 15:18:22 -04:00
Jenkins
1a14fd27fe i18n: automatic bump
Change-Id: I5b0faee40f0f930710cb0bbd5b2318f1f8756da3
2022-06-27 16:44:31 -04:00
Sébastien Blin
75cad12cde misc: remove freeable flag
It was badly set as client-qt never used this but is enabled
since the merge of jami-libclient, making it not possible to
remove an account.

Change-Id: If7acb9aedacaa9309f741078e89a900ee2940df9
2022-06-23 10:56:45 -04:00
Amin Bandali
d7045b5d54 cmake: bump minimum required GCC version up to 8
Change-Id: I67e37155cdca75b83943497c008aaf18edb9a95f
2022-06-23 10:43:56 -04:00
Sébastien Blin
51296aad85
misc: unistd needed for get_pid
Change-Id: I9f58bef7eb5b379e95f2494ac6745041e9ae194f
2022-06-23 09:30:59 -04:00
Andreas Traczyk
63646e6b65 build: fix native Windows build
Change-Id: Icb9c82aea6eeb17f02353da58bb77fede79b3cb0
2022-06-22 22:33:26 -04:00
Sébastien Blin
dc28cd5d9d conversationmodel: do not recreate non swarm conversation if removed
Change-Id: Ibc769db225bf9baa47b01b86c1eec4468b23786a
GitLab: #757
2022-06-20 16:17:17 -04:00
Aline Gondim Santos
357c814c5c plugins: hide preference tooltip if text empty
Change-Id: I9acb9d5d3d53e981992759355b98ebcd785bad6b
2022-06-20 15:14:09 -04:00
Sébastien Blin
83834301fa swarmdetailspanel: make profile in readonly if not enough authorization
Change-Id: Ia7d17f72d4de82482187d9f0f945af9024d2c242
GitLab: #737
2022-06-17 10:25:46 -04:00
Sébastien Blin
15eb216f60 conferences: follow API for new conference protocol
https: //git.jami.net/savoirfairelinux/jami-project/-/issues/1429
Change-Id: Ifec006058e834dacef90539d93c6f1974c84dd52
2022-06-17 10:25:46 -04:00
Sébastien Blin
bfbdde1ac0 participantslayer: perform a lookup if no bestName
In a conference, lookup participants that are not in our contact
at least to get their username if one is found.

Change-Id: I39e51119248e1942deaf99af4c25a80843643de1
2022-06-16 11:34:30 -04:00
Jenkins
9535c88bdf i18n: automatic bump
Change-Id: I00025b4ded7dcfc1aa5500c39f87955070ad1329
2022-06-14 15:01:33 -04:00
Sébastien Blin
e1f5935208 SBSMessageBase: use Author directly
To be displayed in a swarm with multiple participants

Change-Id: Ic29cd1b5ec3b6635f2f9ee907094812b38ec7116
2022-06-14 09:09:08 -04:00
Sébastien Blin
5f79a9f280 renderers: do not crash on update and simplify code
No need to add complex mechanisms for nearly no-ops, the previous
method were bugguy and caused weird crashes. Just re-create the
renderer correctly.

Change-Id: I88738244c7cbaa6f189799c6a28dc9244953667d
2022-06-14 09:03:51 -04:00
Sébastien Blin
b70c0fe571
conversationmodel: avoid any potential infinite loop
if we have no new messages while loading, we shiould detect it.

https://git.jami.net/savoirfairelinux/jami-daemon/-/issues/738

Change-Id: Ibfb4965cf9742253cd3d272009f7a0422fb04ac9
2022-06-14 09:03:49 -04:00
Sébastien Blin
fc0ad97bc5 avmodel: avoid heap-buffer-overflow
use finished string to avoid a heap-buffer-overflow due to non
terminated string

Change-Id: Ic7d7fd45522e199977be9213359888b630d86543
2022-06-10 10:50:19 -04:00
Amin Bandali
70a89500a6 misc: drop remnants of the old and now-unused web chatview
GitLab: #749
Change-Id: Ie58f458d44b1d643632842e2fb44aad19571405b
2022-06-09 16:10:15 -04:00
Fadi SHEHADEH
0ef5cca551
chatview: bubbles style
- radius
- spacing username
- spacing avatar bubble
- added username on top

Change-Id: Iaea52d2c6334a64727fc818ef3232623b938d41e
Gitlab: #730
2022-06-09 15:54:47 -04:00
Amin Bandali
e0b3b4adec misc: vendor libjamiclient into 'src/libclient/'
This is libjamiclient from the jami-libclient.git repository as of
767c45b8b09806ac05cbada720864df93588c047, with the following changes:

* src/libclient/newaccountmodel.cpp:
(NewAccountModelPimpl::removeFromAccounts): The lock wait inside
'#ifdef CHK_FREEABLE_BEFORE_ERASE_ACCOUNT' was not updated when the
type of 'accounts' was changed over the years from this:
std::map<std::string, account::Info>
to this:
std::map<QString, std::pair<account::Info, std::shared_ptr<Database>>>
Basically we need to get the 'first' of the pair for 'account::Info'.
So we now do that.

* src/libclient/avmodel.cpp:
* src/libclient/callbackshandler.cpp:
* src/libclient/contactmodel.cpp:
* src/libclient/conversationmodel.cpp:
* src/libclient/database.cpp:
* src/libclient/namedirectory.cpp:
* src/libclient/newaccountmodel.cpp:
* src/libclient/newcallmodel.cpp:
* src/libclient/newdevicemodel.cpp:
* src/libclient/peerdiscoverymodel.cpp:
* src/libclient/pluginmodel.cpp:
* src/libclient/smartinfohub.cpp:
* src/libclient/vcard.h:
* src/libclient/authority/storagehelper.cpp:  Replace Qt's 'foreach'
with 'Q_FOREACH' and its 'emit' with 'Q_EMIT' because in the client-qt
code base we have '-DQT_NO_KEYWORDS' to avoid conflicts with other
libraries we use.

* cmake/FindLibJami.cmake: Import cmake/FindRing.cmake from the
jami-libclient.git repository.  Then, rename RING_BUILD_DIR to
LIBJAMI_BUILD_DIR (though the old name is still supported for now).
Also update other references of Ring to Jami.  Further, add additional
calls to 'find_library' to make sure specified local paths for libjami
are checked before system-wide ones (in case of older/obsolete libjami
being available system-wide, which might happen on GNU/Linux systems).

* translations/lrc_*.ts: Import translation files from the libclient
repository.  The message location paths were corrected by running
"sed -i 's|../src|&/libclient|g' lrc_*.ts" in 'translations/'.

.tx/config: Add section for the newly-imported libclient translations.

* CMakeLists.txt: Reformat, plus various fixes and cleanups, such as
changing indentation to 2 spaces and wrapping lines at 70 characters,
renaming the parent directory of translations from 'ring' to 'jami',
and using all lowercase function calls.  Also add copyright headers.

* src/app/appsettingsmanager.cpp:
(AppSettingsManager::loadTranslations):
* src/app/utilsadapter.cpp (UtilsAdapter::supportedLang): Update to
adapt to the renaming of the parent directory of translations from
'ring' to 'jami'.

GitLab: #748
Change-Id: I86e3b0fb30e554755023e7b858b6a0d132cd59ab
2022-06-08 16:28:57 -04:00
Sébastien Blin
a7735dfa7d videoprovider: filter resize operations
Change-Id: I513acc54f1d8236b93832c02f9e658ec39f4db79
2022-05-31 03:14:35 -04:00
Andreas Traczyk
e0ed0ea2f3 vulkan(Windows): verify vulkan instance creation with vulkan-1.dll
Add another supplementary check using functions from the vulkan-1
module before trying with QVulkanInstance.

Gitlab: #746
Change-Id: I8975ef8765675aca95c4fee648853ea74c0c8ec9
2022-05-24 16:42:44 -04:00
Andreas Traczyk
0e819a64e8 vulkan(Windows): verify layer VK_LAYER_KHRONOS_validation exists
Add a supplementary check after calling QVulkanInstance::create to
make sure the requested validation layer was created.

Gitlab: #746
Change-Id: Ibe3004fa1a1a38401be8625aaea34e0bef185d0a
2022-05-20 11:31:15 -04:00
Amin Bandali
c7fdf3ff30 misc: move application sources from 'src/' to 'src/app/'
In preparation for vendoring libjamiclient into 'src/libclient/'.

GitLab: #734
Change-Id: Ibd956abc8fe9bd454ac0e9a5a28b77a5a74174e7
2022-05-19 15:47:30 -04:00
Fadi SHEHADEH
cbde5d9047 badge: show 9+ instead of … with more than 9 items
Change-Id: I2eff7e56b16d490f579eeb75e68a526870cf188f
2022-05-19 13:56:38 -04:00
Jenkins
86af807221 i18n: automatic bump
Change-Id: I2ea908389631d3da12463b1bbb4455bfea32f9b3
2022-05-18 07:14:16 -04:00
Sébastien Blin
469a45bb9e misc: replace Group's name by Swarm's name
Change-Id: I3e006bd1c9eceb2fafd8a04c9a9cf2a9ad2a0433
2022-05-17 03:36:08 -04:00
Fadi SHEHADEH
cd027db503 contact detail: fix width for identifier
replaced width by layout.preferredWidth

Change-Id: Ie72047cd2745b7bf0ca10617b8e178b1ecde90a4
GitLab: #736
2022-05-13 11:28:18 -04:00
Fadi SHEHADEH
bc67448c4d contact detail: fix selection for username
replaced MaterialLineEdit by TextEdit

Change-Id: I9e1dfa0a6a1b0a7bfd105cbf8890f1d8c57aeeb9
GitLab: #736
2022-05-13 11:28:11 -04:00
Sébastien Blin
5337ede589 preview: fix undefined domain for twitter and color with luma
Change-Id: I28a5d02881b9b5eb57ad6efa646dd1c5a3327856
GitLab: #670
2022-05-13 10:46:23 -04:00
Sébastien Blin
920bb44a3f swarmdetailspanel: only change photo if enough permissions
Change-Id: I293ff9e3fbca577c660fc2c204ed75568a176bb7
2022-05-13 02:30:24 -04:00