1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-06-09 21:30:42 +00:00
profanity/src
IsaacM88 d043d53948 Fix duplicate download IDs.
Fixes https://github.com/profanity-im/profanity/issues/1794

Explanation
The problem is the download's identifier. Downloads are given an ID so they can be referenced later when their progress changes. Currently, the download's ID is the download's URL. When you download the same file twice, you have two downloads with the same ID. Download progress updates are shown on the first of both downloads with the same ID.

Solution
Change the download's ID from its URL to a random number. A random ID is generated when get_random_string() is called from cmd_funcs.c. Several other functions are updated to cope with the new ID format.
2023-03-09 15:02:26 -07:00
..
command Fix duplicate download IDs. 2023-03-09 15:02:26 -07:00
config let account_new() take ownership of passed values 2023-01-18 20:02:46 +01:00
event Update copyright year 2023-01-10 10:37:25 +01:00
omemo Add macro for possible NULL prints and use it on known sports 2023-01-26 17:42:52 +01:00
otr Split log.c into log.c and chatlog.c 2022-06-28 20:08:38 +02:00
pgp Update copyright year 2023-01-10 10:37:25 +01:00
plugins plugin: python: fix build for Python 3.11 2022-09-24 12:49:12 +07:00
tools Fix duplicate download IDs. 2023-03-09 15:02:26 -07:00
ui Fix duplicate download IDs. 2023-03-09 15:02:26 -07:00
xmpp Fix MAM not loading some recent messages 2023-02-14 00:25:11 +02:00
chatlog.c Update copyright year 2023-01-10 10:37:25 +01:00
chatlog.h Split log.c into log.c and chatlog.c 2022-06-28 20:08:38 +02:00
common.c introduce auto_gcharv 2023-01-19 10:40:25 +01:00
common.h Remove space to match clang coding style 2023-01-26 17:43:04 +01:00
database.c fix more memory leaks 2023-01-18 20:11:13 +01:00
database.h Update copyright year 2023-01-10 10:37:25 +01:00
log.c minor changes 2023-01-18 20:02:46 +01:00
log.h minor changes 2023-01-18 20:02:46 +01:00
main.c Update copyright year 2023-01-10 10:37:25 +01:00
profanity.c minor changes 2023-01-18 20:02:46 +01:00
profanity.h Update copyright year 2023-01-10 10:37:25 +01:00