mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-11-09 07:36:13 +00:00
Removed dupe ToDeviceInfo
This commit is contained in:
1 parent
2f9b44fcd0
commit
98bc2fea8b
1 file changed
+1
-18
@@ -226,24 +226,7 @@ namespace Jellyfin.Server.Implementations.Devices
|
||||
|| !GetCapabilities(deviceId).SupportsPersistentIdentifier;
|
||||
}
|
||||
|
||||
private DeviceInfo ToDeviceInfo(Device authInfo)
|
||||
{
|
||||
var caps = GetCapabilities(authInfo.DeviceId);
|
||||
|
||||
return new DeviceInfo
|
||||
{
|
||||
AppName = authInfo.AppName,
|
||||
AppVersion = authInfo.AppVersion,
|
||||
Id = authInfo.DeviceId,
|
||||
LastUserId = authInfo.UserId,
|
||||
LastUserName = authInfo.User.Username,
|
||||
Name = authInfo.DeviceName,
|
||||
DateLastActivity = authInfo.DateLastActivity,
|
||||
IconUrl = caps.IconUrl
|
||||
};
|
||||
}
|
||||
|
||||
private DeviceInfo ToDeviceInfo(Device authInfo, DeviceOptions? options)
|
||||
private DeviceInfo ToDeviceInfo(Device authInfo, DeviceOptions? options = null)
|
||||
{
|
||||
var caps = GetCapabilities(authInfo.DeviceId);
|
||||
|
||||
|
||||
Reference in new issue
Block a user