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

82 commits

Author SHA1 Message Date
Andreas Traczyk
ff7acf9932 localvideo: refactor preview component device control
Change-Id: Ibcd88c5a3c73a0e67f94d70bc420845aa7b8c822
2024-03-12 16:33:21 -04:00
Sébastien Blin
1c81553245 conversationmodel: do not add wrong call to wrong conversation
GitLab: #1578
Change-Id: Ibe980844acf1b44afb0ea6aa0e105ffa99e5c36f
2024-02-29 09:12:32 -05:00
Sébastien Blin
5c2fec53da conversationmodel: avoid to emit needsHost multiple time
Only do it for current account, this avoid to emit needsHost() for
all accounts with the same conversation

GitLab: #1579
Change-Id: I147b2f72fd4c1000949500309eae1970cdbd033f
2024-02-29 09:12:03 -05:00
Andreas Traczyk
610c27f751 contactmodel: refactor profile loading
Loading the profile elements from disk is now deferred to consumption. Implements a basic caching mechanism for the displayname and avatar elements.

Gitlab: #1459
Change-Id: Ic5aeec6649c198f617b9269409ded647c7536b8f
2024-02-28 14:53:28 -05:00
Sébastien Blin
1ec2d5f27b conversationmodel: fix insert last interaction for conv request
GitLab: #1571
Change-Id: I848c6f8e1867f552a55105a4d528f51a59676ce4
2024-02-21 15:54:42 -05:00
Sébastien Blin
39da97396c contactmodel: fix add on second request
GitLab: #1572
Change-Id: If588d22b80ea2f77b21f2ddd081ba32fdffefc7c
2024-02-19 13:50:59 -05:00
Sébastien Blin
406edda453 conversationmodel: fix status update for messages other than text
Change-Id: I0f1cb45a6cca9c8e95366c81a9d7813c740e2987
2024-02-19 13:26:08 -05:00
Sébastien Blin
d5349490f5 conversation: follow daemon changes for sending status
cf jami-docs/developer/delivery-status
+ Basically this patch uses the new SwarmMessage.status to show
current interaction status.
+ setRead only updates the status if the interaction is newer (else,
because signal are not guaranteed to be ordered, this can cause the
lastDisplayed_ to be incorrect).
+ Some old code is removed and unused signal
+ MessageReceived updates status if needed

GitLab: #1487
Change-Id: I4d4d5dce8dc12ab638e89e3f8431810b29a72087
2024-02-15 16:15:51 -05:00
Andreas Traczyk
3d3b4612df chat-view: fix loading data transfer items
- Avoids manually building local file URIs which was causing long load times for conversations on Windows.

- Fixes an issue where missing images were caused by a interaction updates erasing the message bodies.

Change-Id: I4c65f73cf9f46da5a9ae899940cb205cb34ffae2
2024-02-13 17:06:26 -05:00
François-Simon Fauteux-Chapleau
c8b52262bc Fix empty notification when missing a call
When a user misses a call, they receive a message saying so in the chat
and get a notification for that message, but the notification's body was
empty instead of matching the message's content.

Change-Id: I24971d1d0a976ea3ab15ac30c4e9ed33fdf3d760
2024-01-29 16:18:00 -05:00
Sébastien Blin
84150e8977 misc: bump copyright to 2024
Change-Id: I8d5f968fbedbc884c91416246049a0ef4cd652eb
2024-01-03 09:54:49 -05:00
Andreas Traczyk
46a955aa3d misc: fix ups for conversationmodel/messagelistmodel
Removes some remaining excess complexity in the way interactions are managed by the client. Removes raw iterator access and provides thread-safe alternatives.

Change-Id: I482bf599de869245f96c4aab418127f30508ef41
2024-01-03 08:43:50 -05:00
Sébastien Blin
32b76c8da4 messagelist: use history given from daemon (except SIP accounts)
With Jami-Daemon >= 14.0.0, the client doesn't need to construct
itself the history. This part is now handled by the daemon.
This patch uses the new API:
+ loadConversationMessages->loadConversation
+ SwarmMessageReceived/SwarmMessageUpdated/ReactionAdded/ReactionRemoved
+ remove MessageReceived
+ ConversationLoaded->SwarmLoaded

+ No need to use loadConversationUntil, the daemon will load whatever
the client needs.
+ No need to clear cache, just reset the body and emit data changes

Everything should work like before (even re-translation & changing
preview preference)

Change-Id: Iaf1fa3e84e8e157ae2d0bec210977f9a34415ebc
2024-01-02 15:22:10 -05:00
Sébastien Blin
a74b54939d conversationmodel: simplify onContactAdded and fix syncing status
Change-Id: I8e6eb93569a34099e155fe1e397dd1f4e84e890c
2023-12-06 12:56:03 -05:00
Sébastien Blin
7f414f652e callmodel: remove old TODO
This was causing some weird conference states for swarm-call

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

Change-Id: I87ada927f223bc325eb0f62307c6dda51b330330
2023-11-17 09:42:39 -05:00
Sébastien Blin
c6833d69fb conversationmodel: do not add calls to wrong conversations
newCall already handle everything

Change-Id: I6c9f5b1e50960b3d45e4fde198f0fc67ecfad020
GitLab: #1432
2023-11-17 09:42:39 -05:00
Sébastien Blin
fc7109950b swarm-call: do not create 1:1 conversation for incoming calls in swarm
There was no way to differentiate a 1:1 incoming call and a call
from a swarm, because username couldn't be checked. Now, create
conversation only if it's a 1:1 call

Change-Id: I0094967914b4888d083b9adc1d2b11de467d6f48
2023-11-01 13:52:37 -04:00
Sébastien Blin
8de099e38d MessageOptionsPopup: add option to locally delete file
This button offers an option to remove sent/downloaded files
from the device.

Change-Id: Ida1b135681243fd6055034d8a2d699d11bf040e5
GitLab: #1287
2023-09-12 10:59:23 -04:00
Aline Gondim Santos
ffcd3e59a4 incomingcall: use callstatechanged signal
To be able to show calls that are transfered, we must catch new calls
from callstatechanged signal. Move all logic from newincomingcall to
callstatechanged.

Change-Id: Ibd3ff5f8b4009895b3165348fd1638956f5f66d9
2023-08-08 10:48:50 -04:00
Andreas Traczyk
e8e9fd30c9 avatars: fix missing avatars
Strip whitespace for avatars pulled from conversation info.

Gitlab: #1246
Change-Id: I767a53ee3e492507f9cb80b802a9eaaaa66d3d50
2023-07-27 10:47:06 -04:00
Sébastien Blin
e3e4de0fe7 misc: remove unused method
Change-Id: Ib58dabb342a293a1e4e699fcb75b1b04e5541bc4
2023-07-19 11:02:12 -04:00
Sébastien Blin
03b3530d3d conversationmodel: specify "you" for self-user in title
Change-Id: I01d2cd868c7f1c513290792b5f8bff0f6a110f0e
GitLab: #1250
2023-07-07 13:29:28 -04:00
Thomas Ballasi
7514d75242 conversationmodel: ignore notifications from muted conversations
This use case has been observed when taking a look at the system tray
icon, which uses conversation model's notificationsCount() to define
whether or not to show a red dot. As we don't want this for muted
conversations these are ignored.

Change-Id: Ic185de9170dfcbfbd8ffc3513676dd90471f3baa
2023-07-04 16:23:35 -04:00
Sébastien Blin
24a0a384ff contactmodel: no need to call both addContact/acceptConversationRequest
only acceptConversationRequest is enough to accept a request

Change-Id: I4720ea70def6cd35153167ef9577b1c7528e7140
2023-06-27 13:54:19 -04:00
Sébastien Blin
c37ec740e2 misc: fix click on remove conversation
https://git.jami.net/savoirfairelinux/jami-daemon/-/issues/855
Change-Id: I2c0caa3db05c663c5ee23367774c987aeca3324f
2023-06-14 15:41:38 -04:00
Sébastien Blin
771e8bcb9d conversationmodel: use mode before conversation deletion
Change-Id: Ibf6fffae59475ce415a60ab1bbf09687d6d30c29
2023-05-04 15:58:39 -04:00
Sébastien Blin
d58fcabdbf conversationmodel: fix swarm creation with details
Change-Id: Ie5fff0d9688d82ae0c31d1b07f970a33c80fe26a
GitLab: #1071
2023-05-04 14:15:16 -04:00
Sébastien Blin
1c24fbf89b conversationmodel: show correct timestamp for syncing conversations
Because no interactions was added, a conversation was shown at the
bottom while syncing

Change-Id: I9cdba00f7fe328e0cf6486d7076fc377fc573a32
2023-03-23 09:27:34 -04:00
Sébastien Blin
b41e5867c6 SIP: possibility to set custom avatar/display name
This allow users to be able to easily identify their contacts by
changing the avatar/display name of a contact (for SIP and 1:1)

https://git.jami.net/savoirfairelinux/jami-project/-/issues/757
Change-Id: I483a9116b78b08d43962abff982e73089bfec1d7
2023-03-23 08:11:12 -04:00
Sébastien Blin
0de8f019b2 conversation: add the possibility to answer with a file
Also remove retryInteraction as useless in new versions.

Change-Id: I79a016c9fa7b8bc4d5fcdb0aeff51d78aea2f314
GitLab: #1017
2023-03-06 14:46:07 -05:00
Sébastien Blin
8a15f18d1c conversationmodel: handle double call at the same time
If both sides are calling at the same time, the daemon will chose
one of the call. We must use this one.

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

Change-Id: I09c991c0facf34cf7ed83d8782b7646b3075eed8
2023-03-02 13:00:00 -05:00
Sébastien Blin
4e088783a4 misc: avoid weird crash
Change-Id: I6e42a4f494b42330bafcfa4c9616ab78818ddf00
2023-03-02 08:31:47 -05:00
Sébastien Blin
759e3ea310 sip: fix outgoing text message
Change-Id: I3aba2f02e375d47a9bfdacb923e2907c40f4f151
2023-02-27 09:26:40 -05:00
Aline Gondim Santos
3a8068f990 misc: open swarm after creation
Change-Id: I936abb96b5e232b63a917428892f716ca0985db2
GitLab: #952
2023-02-22 09:10:51 -05:00
Nicolas Vengeon
06ab19f213 Feature: search messages
Change-Id: Ia458e2e6ee183cad9d0418af0dbbbcd990f14281
GitLab: #918
2023-02-20 09:04:49 -05:00
Sébastien Blin
1a9aa18680 sip: fix outgoing call messages
The author was empty instead of current uri

Change-Id: I4022c5e8bbbe4bd57c1a3fd7bc33ba8be6861bde
2023-02-17 16:40:05 -05:00
Aline Gondim Santos
8147baef2b fix: add default flag to sendAccountTextMessage
Change-Id: I08ef8b2f383c3aa1035518a2d4f92e941048e211
2023-02-16 09:40:27 -03:00
Amin Bandali
8d46acedf1 misc: Update copyright years to 2023
Change-Id: Idf38e82631a4e22540aa5dec8ec2db0ab4a38c2e
2023-02-06 01:47:15 -05:00
Sébastien Blin
bcfc2ccf0e invitationview: sort per received timestamp
We sort the invites by last interactions. However on swarm, there
is no interaction yet. Add one with the received timestamp given
by the daemon.
(Regression appears because we were showing trust request before
not conversation requests)

Change-Id: Ic7f4d1a5d485325c95a19c2c38ae9c74630829ce
GitLab: #956
2023-02-05 16:35:30 -05:00
Sébastien Blin
07c0f890da conversationmodel: get registered name for non contact members
Because in a swarm you can talk with non contacts, we should at
least retrieve the username when possible.

Change-Id: Ie01cd10cc1231fc4024bd5a08c30c08d69e8e7f0
GitLab: #948
2023-02-03 08:44:57 -05:00
Aline Gondim Santos
b0ad6c484e fix: get last selfmessage Id
Change-Id: Ibd901be120c061d7b726f657a5d51636716acdcc
2022-12-29 09:34:36 -05:00
Sébastien Blin
97872288d8 misc: cleanup trust request (replaced by conversation requests)
Change-Id: I5d3d7cd5cb7570ff2063ea5a981c312480a6990a
2022-12-20 11:17:22 -05:00
Sébastien Blin
8d74ad3602 callmessagedelegate: fix isOutgoing
Change-Id: Ia4529e9646cd676d15c60f6f48e7ab31fd2bbbc1
2022-12-16 16:37:01 -03:00
Nicolas Vengeon
7bb5ad0ee0 Emoji: Implement emoji-reactions
Change-Id: I83f27e86a6a7ee2140dc3028a4e183dcb8de8a27
GitLab: #875
2022-12-14 16:06:53 -05:00
Sébastien Blin
995bd420aa locationsharing: add notification
Show notification when a peer is sharing its position on the non
current conversation.
This needed a lot of changes. Now we store shared position via
accountId + peer.
This also fix location icons and keep state when changing from
one account to another.

Change-Id: I8c1848890efa09f6e296e9da779a355167e4d3d4
GitLab: #888
2022-12-02 14:58:22 -05:00
Aline Gondim Santos
50888a2865 shortcut: add option to edit last sent message
GitLab: #892
Change-Id: Ia62ac144d187e705644742ebaa9b1679c45d2ae0
2022-12-01 10:22:01 -05:00
Sébastien Blin
3ba007d02b misc: fix incoming message sip
We do not need to check contacts for SIP as it will be considered
automatically as a contact

Change-Id: If78113e9d79dcd695c39c2d12c0441e2cb282737
2022-11-29 10:41:19 -05:00
Nicolas Vengeon
e5b54ad787 feature: show and share user location
copyright OpenLayers v7.1.0: ol.css
copyright OpenLayers v7.1.0: ol.js

GitLab: #867

Change-Id: I4e01f6d9727d56541d1b44023f26959ebe4fbe26
Signed-off-by: Nicolas Vengeon <nicolas.vengeon@savoirfairelinux.com>
2022-11-23 14:05:36 -05:00
Sébastien Blin
1c53598247
misc: update searchConversation
Change-Id: I2bb01e2846a2c543b7f17086794cd007c2ac39ae
2022-11-21 11:40:59 -05:00
Sébastien Blin
0996b167d9 swarm: add call buttons and interactions for multi-swarm
+ Add call buttons to start a new call
+ React to events from the swarm
+ call interactions (Join call/Call ended, etc)
+ active calls area
+ Add call management logic in LRC
+ Feature is enabled via the experimental checkbox

https://git.jami.net/savoirfairelinux/jami-daemon/-/issues/312
Change-Id: I83fd20b5e772097c0792bdc66feec69b0cb0009a
2022-11-17 13:16:02 -05:00