Show DCC send filesize
This commit is contained in:
parent
45f8795fad
commit
02e9df865e
5 changed files with 65 additions and 59 deletions
|
@ -147,12 +147,12 @@ export default function handleSocket({
|
|||
}
|
||||
},
|
||||
|
||||
dcc_send({ network, from, filename, url }) {
|
||||
dcc_send({ network, from, filename, size, url }) {
|
||||
const networkName = getState().networks[network]?.name || network;
|
||||
|
||||
dispatch(
|
||||
openModal('confirm', {
|
||||
question: `${from} on ${networkName} is sending you: ${filename}`,
|
||||
question: `${from} on ${networkName} is sending you (${size}): ${filename}`,
|
||||
confirmation: 'Download',
|
||||
onConfirm: () => {
|
||||
const a = document.createElement('a');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue