1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-10 02:35:58 +01:00

Ensure buttons are removed after a transfer is cancelled.

This commit is contained in:
Juliusz Chroboczek 2022-01-30 18:28:35 +01:00
parent c535f67246
commit c38c5555b0

View file

@ -2645,7 +2645,7 @@ function gotUserMessage(id, dest, username, time, privileged, kind, message) {
break; break;
} }
case 'cancelfile': { case 'cancelfile': {
setFileStatus(false, id, message.id, 'Cancelled.'); setFileStatus(false, id, message.id, 'Cancelled.', true, true);
deleteTransferredFile(false, id, message.id); deleteTransferredFile(false, id, message.id);
break; break;
} }
@ -2654,7 +2654,7 @@ function gotUserMessage(id, dest, username, time, privileged, kind, message) {
break; break;
} }
case 'rejectfile': { case 'rejectfile': {
setFileStatus(true, id, message.id, 'Rejected.'); setFileStatus(true, id, message.id, 'Rejected.', true, true);
deleteTransferredFile(true, id, message.id); deleteTransferredFile(true, id, message.id);
break; break;
} }