status-go/server
Jonathan Rainville dfc4dc8078 feat(community)_: add version to image url to let clients update
Fixes https://github.com/status-im/status-desktop/issues/16688

Since we use the local image server to show the community image, the URL never changes when we update the image, since it's served using a query string containing the community ID. eg: `https://Localhost:46739/communityDescriptionImages?communityID=0x03c5ece7da362d31199fb02d632f85fdf853af57d89c3204b4d1e90c6ec13bb23c&name=thumbnail`
Because of that, the clients cannot know if the image was updated, so they had to force update the image every time, which was inefficient.

We discovered this issue when I refactored the community client code in Desktop so that we only update the changed properties of a community instead of reseting the whole thing.

The solution I came up with in the PR is to add a `version` to the URL when we detect that the image changed. This let,s the clients detect when the image was updated without having to do any extra logic.
2024-11-22 15:01:07 -05:00
..
pairing chore_: create v2 endpoints for status.go to solve EndpointsUnsupported in endpoints.go (#5943) 2024-11-19 09:31:29 +00:00
servertest Added functionality to slow stop UDP beacon multicast/listen 2023-04-17 12:01:38 +01:00
certs.go chore_: remove CLI option MEDIA_HTTPS (#6112) 2024-11-22 10:23:17 +08:00
certs_test.go Local Pairing: connection string version 2 with sharing multiple server addresses (#3909) 2023-08-22 19:18:14 +03:00
device.go Added device name set on Messenger.Start() 2022-11-25 11:33:58 +00:00
device_test.go Added device name set on Messenger.Start() 2022-11-25 11:33:58 +00:00
handlers.go fix_:still return the image when handleAccountInitialsImpl is unable to get public key to generate color hash to generate ring (#5409) 2024-07-19 16:41:45 +08:00
handlers_linkpreview.go Add favicons to external link previews (#4788) 2024-03-12 22:47:51 +02:00
handlers_test.go fix_:still return the image when handleAccountInitialsImpl is unable to get public key to generate color hash to generate ring (#5409) 2024-07-19 16:41:45 +08:00
ips.go optimised finding server cert (#4148) 2023-10-18 14:17:49 +08:00
ips_test.go [CHERRY-PICK] PR#4036 (#4037) 2023-09-20 10:37:51 +01:00
ports.go Change of strategy, using a for loop wait 2022-10-26 10:26:59 +01:00
qrops.go adjust padding for QR Images (#3510) 2023-06-01 13:41:01 +05:30
qrops_test.go feat: use media server for community collectible images 2023-12-16 08:49:58 -03:00
server.go chore_: remove CLI option MEDIA_HTTPS (#6112) 2024-11-22 10:23:17 +08:00
server_media.go feat(community)_: add version to image url to let clients update 2024-11-22 15:01:07 -05:00
server_media_interface.go feat(community)_: add version to image url to let clients update 2024-11-22 15:01:07 -05:00
server_test.go Revert "test: bump go-libp2p" 2024-01-18 20:29:33 +00:00
timeout.go feat_: log on panic (#5849) 2024-09-27 06:37:32 +08:00
timeout_test.go Added timeout functionality to Servers (#3192) 2023-02-15 15:50:30 +00:00