Show DCC send filesize

This commit is contained in:
Ken-Håvard Lieng 2020-06-24 08:09:05 +02:00
parent 45f8795fad
commit 02e9df865e
5 changed files with 65 additions and 59 deletions

View file

@ -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');