talk-desktop icon indicating copy to clipboard operation
talk-desktop copied to clipboard

Profile Pictures Slow to Update

Open sim2kid opened this issue 1 year ago • 2 comments

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce

  1. Start with opening Talk so that your profile is loaded by the application.
  2. On Nextcloud, change your profile picture.
  3. Return to talk. The profile won't be updated even after rebooting the application.

Expected behaviour

The profile should update on the talk client if it changes.

Actual behaviour

The profile picture remains the same for extended periods of time. This includes past app reboots and force reloads.

Diagnosis and logs

Diagnosis report

Diagnosis report

Nextcloud Talk Desktop
Version v1.0.0
Built-in Talk version v20.1.0
Operating system Windows_NT 10.0.22635 (Windows 11 Pro)
Executable Path C:\Users\2simm\AppData\Local\NextcloudTalk\app-1.0.0\Nextcloud Talk.exe
Connected to -
Nextcloud server version 30.0.2
Nextcloud Talk version 20.0.2
notifications app enabled ✅ yes
notify_push app enabled ✅ yes

Application config

{
  "theme": "default",
  "systemTitleBar": false,
  "monochromeTrayIcon": false,
  "zoomFactor": 1,
  "playSoundChat": "respect-dnd",
  "playSoundCall": "respect-dnd",
  "enableCallbox": "respect-dnd"
}
Client logs

Logs are after running a Force Reload. Issue still occurs. (I don't think the logs help in this case)

index.js:2 Using locale "" for language "en"
JitsiStreamBackgroundEffect.worker.js?v=fa1b69e42302a02d7a71:1 [WASM] Loading model of size: 249792
JitsiStreamBackgroundEffect.worker.js?v=fa1b69e42302a02d7a71:1 INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
printChar @ JitsiStreamBackgroundEffect.worker.js?v=fa1b69e42302a02d7a71:1
nextcloud.domain.example/ocs/v2.php/apps/user_status/api/v1/statuses/_sim2kid:1 
        
        
       Failed to load resource: the server responded with a status of 404 ()
nextcloud.domain.example/ocs/v2.php/apps/user_status/api/v1/statuses/_sim2kid:1 
        
        
       Failed to load resource: the server responded with a status of 404 ()
index.js:2 Not connected to signaling server yet, defer joining room kgbswmoy
index.js:1 Session has been marked as inactive

sim2kid avatar Dec 11 '24 16:12 sim2kid

Hi, thanks for the report!

Avatar image has this in response headers, so it's cached for 1 day and won't be updated until it expires (which is a common practice for most of image previews / assets in Nextcloud):

Cache-Control: private, max-age=86400, immutable

If you disable cache, it should be promptly updated after force reload.

We'll take a look how it is invalidated in web and see, if that would be possible to implement in the Desktop client.

Antreesy avatar Dec 12 '24 10:12 Antreesy

It is also Talk Desktop issue.

It only loads avatar once on open.

ShGKme avatar Dec 14 '24 22:12 ShGKme