mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-21 07:58:05 +01:00
Send acceptable languages instead of request into the profile badge converter
This commit is contained in:
@@ -5,8 +5,9 @@
|
||||
|
||||
package org.whispersystems.textsecuregcm.badges;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Set;
|
||||
import javax.ws.rs.core.Request;
|
||||
import org.whispersystems.textsecuregcm.entities.Badge;
|
||||
import org.whispersystems.textsecuregcm.storage.AccountBadge;
|
||||
|
||||
@@ -14,9 +15,7 @@ public interface ProfileBadgeConverter {
|
||||
|
||||
/**
|
||||
* Converts the {@link AccountBadge}s for an account into the objects
|
||||
* that can be returned on a profile fetch. This requires returning
|
||||
* localized strings given the user's locale which will be retrieved from
|
||||
* the {@link Request} object passed in.
|
||||
* that can be returned on a profile fetch.
|
||||
*/
|
||||
Set<Badge> convert(Request request, Set<AccountBadge> accountBadges);
|
||||
Set<Badge> convert(List<Locale> acceptableLanguages, Set<AccountBadge> accountBadges);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user