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

26 commits

Author SHA1 Message Date
Sébastien Blin
538481a9f8 smartlist: improve cache cleaning and avoid glitches
Interaction's cache is cleaned to avoid to store too much informations
and to refresh preferences for the chatview when necessary.
However, this was called too much times. We only need to clear cache
when the settings are changing or if we need to remove a lot of
conversations. This patch uses the SmartListItem to determine
what conversation needs to be cleaned.

Change-Id: I731bb9e7d41b140bbc2607800c1a8e0a1eff3244
2021-12-20 13:43:08 -05:00
Sébastien Blin
335b2e5f12 lrcinstance: reverse incorrect method
withVideo should check if the call got video

Change-Id: I5b7e13b7269735bea5f4ecc63a98687cb93bb4c1
GitLab: #617
2021-12-06 16:13:10 -05:00
Sébastien Blin
b4c7661a8e calls: follow API changes (add accountId for calls and conferences)
Change-Id: I54f0c6c144bcf6774883f58ec3bc4fac4bc4ef49
2021-11-17 16:26:26 -05:00
Ming Rui Zhang
b00d61fc90 lrcinstance: clear the interaction cache when switching the conversation
Gitlab: #550
Change-Id: I713af229a3f90ca9d6b3e526ae3c710e7f573c66
2021-10-06 15:58:31 -04:00
Sébastien Blin
98a6a396e4
lrc: let lrc hold conferences
Change-Id: I2eddb949a8d8e33186cef201ccbdf065c7fcf4db
2021-09-21 17:10:06 -04:00
Ming Rui Zhang
e0737f4b70 settings: refactor for SettingsView - stage two
1. Remove redundant functions in AvAdapter
2. Add CurrentDevice for video device treatment
   Audio device treatment should be improved in the next
   stage
3. Add QSortFilterProxyModel to all video list models and
   manage them together to avoid redundant function calls
4. Video device call action should be responsive to device
   change as well

Gitlab: #508

Change-Id: I3df949a08bc19042b73f033139cd6ab06925c0b6
2021-09-14 16:52:45 -04:00
Andreas Traczyk
f7ce4b69f6 audio-preview: synchronize start/stop calls off the UI thread
Use QThreadpool to queue the start and stop of the audio device preview.

Gitlab: #522
Change-Id: I476e754628e0d1e00475c0ead7f1421579683ada
2021-09-14 09:04:11 -04:00
Andreas Traczyk
2ea0a000e1 swarm: fix chatview ui state when selecting conversations
depends on: https://review.jami.net/c/ring-lrc/+/18979

Change-Id: Ic29e5a6f6eced04a095dd097352c37ca0b253eda
2021-08-09 16:59:22 -04:00
Andreas Traczyk
ab4c68adb5 avatars: add clear feature to photobooth
A property is provided to notify of changes to the content of the
current account's stored avatar. If one is stored, then a button
used to clear the avatar becomes available.

Gitlab: #473
Change-Id: I37640acaea3ca43e5abd14678d68b4eeebb3829e
2021-07-19 12:57:31 -04:00
Sébastien Blin
d0b5667449 systray: change systray icon when we have notifications
Also use jami.svg for regular systray icon.

Change-Id: I6325c756d10216a017eb89042ab2f6ca0e988703
2021-07-14 17:13:45 -04:00
Andreas Traczyk
4bda330637 swarm: simplify and update avatar update mechanism
Implements a leaner avatar caching system. The avatar component
listens for uid filtering its id, which may be:
- conversation id
- account id
- contact uri

In response to the uid change, a the image source is updated with
a new image url invoking a fresh QQuickImageProvider query. With
this design, only the avatarregistry's uid mapping needs to be
updated when profiles are changed, and no longer should specific
avatar components receive manual source updates.

Gitlab: #466
Change-Id: Ie5313f5c187a0977ca51b890dd92187480a42537
2021-07-12 17:29:48 -04:00
Andreas Traczyk
285316dd32 lrcinstance: remove custom setter/getter for currentAccountId
Using a custom getter setter cause the setting of the value to
require manual changed signal emission and in addition to being
error prone, this prevents the changed signal from being emitted
upon initial selection. Some excess workaround code may be removed
in following commits.

This patch also refactors the banned contact signaling as part of
an accountadapter connection cleanup.

Change-Id: I73fb751001e53e086adc7a6a8d706671c2878a77
2021-07-09 15:11:27 -04:00
Andreas Traczyk
e18c329741 smartlist: prevent excessive updates to items during reselection
Only save the draft if it changes and filter for index on data
changed signals before updating the avatar.

Change-Id: Ia23a35b512249e4b7953e3a2cef2cedbda386e65
2021-07-06 17:27:24 -04:00
Andreas Traczyk
8409355e93 messagesadapter: use acceptConversationRequest api
To accept incoming requests, a new acceptConversationRequest api
should be used and makePermanent is now only called for outgoing
requests.

Change-Id: I70bcfc0e323ae250641420f4fda91c6987cac720
2021-06-25 17:28:52 -04:00
Andreas Traczyk
83bb6fb082 conversations: refactor list reselection when making permanent
This should fix a race condition preventing the right conversation
from being selected after an outgoing interaction and, more rarely,
accepting an invitation.

Change-Id: Iccd1f91ba4d46285c2f1e4594122a736824b752f
2021-06-25 15:27:41 -04:00
Sébastien Blin
3d71bfa8ae swarm: first implementation to follow api changes
- use QString for interactionId

- swarm conversations: use loadConversationMessages and
subscribe to newMessagesAvailable signal

- avoid displaying "merge" and empty "data transfer" messages

- link composing status

Change-Id: Ic524bb786b2ff0471f03b1bb02d41d6da38e716a
2021-06-11 17:47:27 -04:00
Andreas Traczyk
0a946c767d calladapter: update call selection when falling from conf to dialog
Gitlab: #434
Change-Id: I7ebdde85c264990804a5b017f18d511f3225477f
2021-05-31 13:32:48 -04:00
Trevor Tabah
3142776c32 settings: add troubleshooting dialog
Add a dialog to get logs from daemon.

Gitlab: #406
Change-Id: I25dd7084165660e0a03c4694d0225bbcf0f1a9d6
2021-05-28 14:46:03 -04:00
Andreas Traczyk
1b56c4aa0f calls: fix returning to main view from setting while in a call
This fixes the call stack view not being reset when exiting the
settings.

Gitlab: #417
Change-Id: I1af534a1a164a28e1d29b9a4064cc0c78496557c
2021-05-18 16:58:58 -04:00
Ming Rui Zhang
9d0f84d8be accountadapter: move current account id and type properties to lrcinstance
Change-Id: I609452e83edd55a909d0f30aa6cb0daa3687ff3c
2021-05-14 15:05:20 -04:00
Andreas Traczyk
8230fb863c adapters: handle injecting lrcinstance with zero accounts
Change-Id: I1ec652c60620cf4e7e1caad7fd00ddf1aa40d64d
2021-05-10 16:31:55 -04:00
Andreas Traczyk
e64a9e7ee7 sidepanel: improve smartlist interface with underlying models
Minor cosmetic changes to the account combo box, search bar, filter
tabs, and smartlist.

Change-Id: Ie8173504859b325374e42f0dbb4e0ae75f3ed740
Gitlab: #373
Gitlab: #374
Gitlab: #388
2021-05-07 15:41:28 -04:00
Ming Rui Zhang
3b4e09d43a lrcinstance: add mute dring option in constructor
Change-Id: I3779731c330cc23a7aa7ddc27c76068ab648193c
2021-04-20 17:54:52 -04:00
Andreas Traczyk
cfa10ce268 calls: fix call overlay updates
- don't query the recording state in the set time text function
- change set time text function interval from 20ms to 1000ms
- stop the account-wide time text update timer when there are
  no calls

Change-Id: Iaaabfd52a50ba61aaabade59cae4f061c562cb2d
2021-04-09 16:00:51 -04:00
Andreas Traczyk
cc3931b36e lrcinstance: represent the selected conversation as a QML property
Change-Id: I01dbfc0d6cfcf407d6636ba59b136830ee0342bc
2021-04-09 16:00:43 -04:00
Andreas Traczyk
ac87d33d9f misc: put lrcinstance implementation into cpp file
Change-Id: I46c4e17124b2c0cbf6e92c696d3d47e1b0ad2d0d
2021-04-09 16:00:33 -04:00