mirror of
https://github.com/bitwarden/server.git
synced 2025-07-01 08:02:49 -05:00
only get devices with push tokens
This commit is contained in:
@ -1321,7 +1321,7 @@ namespace Bit.Core.Services
|
||||
private async Task<IEnumerable<string>> GetUserDeviceIdsAsync(Guid userId)
|
||||
{
|
||||
var devices = await _deviceRepository.GetManyByUserIdAsync(userId);
|
||||
return devices.Select(d => d.Id.ToString());
|
||||
return devices.Where(d => !string.IsNullOrWhiteSpace(d.PushToken)).Select(d => d.Id.ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user