Commit e521a184 authored by Olivier Soldano's avatar Olivier Soldano Committed by Andreas Traczyk

support "transfer unjoinable" status to messagesVC

add "TRANSFER_UNJOINABLE_PEER" status to the transfer messages

Change-Id: I5eaf35bc6dba4be615a9d84d98c6a42107031236
Reviewed-by: Andreas Traczyk's avatarAndreas Traczyk <andreas.traczyk@savoirfairelinux.com>
parent 0ab5ad8b
......@@ -176,6 +176,7 @@ NSInteger const GENERIC_INT_TEXT_TAG = 100;
case lrc::api::interaction::Status::TRANSFER_FINISHED:
case lrc::api::interaction::Status::TRANSFER_CANCELED:
case lrc::api::interaction::Status::TRANSFER_ERROR:
case lrc::api::interaction::Status::TRANSFER_UNJOINABLE_PEER:
result = [tableView makeViewWithIdentifier:@"RightFinishedFileView" owner:self];
}
}
......@@ -190,6 +191,10 @@ NSInteger const GENERIC_INT_TEXT_TAG = 100;
break;
case lrc::api::interaction::Status::TRANSFER_ERROR:
[result.statusLabel setStringValue:NSLocalizedString(@"Failed", @"File transfer failed label")];
break;
case lrc::api::interaction::Status::TRANSFER_UNJOINABLE_PEER:
[result.statusLabel setStringValue:NSLocalizedString(@"Unjoinable", @"File transfer peer unjoinable label")];
break;
}
return result;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment