1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-06-23 21:45:30 +00:00
profanity/src/ui
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
..
buffer.c Update copyright year 2023-01-10 10:37:25 +01:00
buffer.h Update copyright year 2023-01-10 10:37:25 +01:00
chatwin.c Fix quote and url autocompletion for MAM and history 2023-02-13 23:40:58 +02:00
confwin.c Add config.h in files were it was missing 2021-03-26 19:54:22 +01:00
console.c add /strophe command to modify libstrophe-specific settings 2023-01-18 17:04:41 +01:00
core.c Fix race condition on resize 2022-04-01 10:49:01 +03:00
inputwin.c Let slashguard ignore quoted messages 2022-07-04 09:15:03 +02:00
inputwin.h Add vim modeline 2019-11-13 12:11:05 +01:00
mucwin.c Fix quote and url autocompletion for MAM and history 2023-02-13 23:40:58 +02:00
notifier.c auto-format 2022-02-01 15:01:28 +01:00
occupantswin.c Update copyright year 2023-01-10 10:37:25 +01:00
privwin.c Fix quote and url autocompletion for MAM and history 2023-02-13 23:40:58 +02:00
rosterwin.c Update copyright year 2023-01-10 10:37:25 +01:00
screen.c Basic support for building on NetBSD. 2020-09-04 12:55:20 +02:00
screen.h Add vim modeline 2019-11-13 12:11:05 +01:00
statusbar.c Update copyright year 2023-01-10 10:37:25 +01:00
statusbar.h Apply coding style 2020-07-07 14:18:57 +02:00
titlebar.c Update copyright year 2023-01-10 10:37:25 +01:00
titlebar.h Add vim modeline 2019-11-13 12:11:05 +01:00
tray.c Apply coding style 2020-07-07 14:18:57 +02:00
tray.h Add vim modeline 2019-11-13 12:11:05 +01:00
ui.h add /strophe command to modify libstrophe-specific settings 2023-01-18 17:04:41 +01:00
vcardwin.c Add vCard support 2022-10-18 23:24:30 +01:00
win_types.h Add vCard support 2022-10-18 23:24:30 +01:00
window_list.c Fix quote and url autocompletion for MAM and history 2023-02-13 23:40:58 +02:00
window_list.h Fix quote and url autocompletion for MAM and history 2023-02-13 23:40:58 +02:00
window.c Fix duplicate download IDs. 2023-03-09 15:02:26 -07:00
window.h Fix duplicate download IDs. 2023-03-09 15:02:26 -07:00
xmlwin.c Add config.h in files were it was missing 2021-03-26 19:54:22 +01:00