feat: Enhance messaging read receipts and auto-read, fix auth 401 error suppression during logout, and refine agent profile expertise
This commit is contained in:
@@ -151,23 +151,21 @@ class AgentProfile {
|
||||
}
|
||||
|
||||
/// Get specializations / expertise from field values.
|
||||
/// Matches web's getExpertiseTags slugs.
|
||||
/// Matches web's getExpertiseTags slugs exactly.
|
||||
List<String> get specializations {
|
||||
final tags = <String>[];
|
||||
// Must match web's expertiseFieldSlugs exactly (exact match, not contains)
|
||||
const expertiseSlugs = [
|
||||
'about_me_expertise',
|
||||
'expertise_areas',
|
||||
'specializations',
|
||||
'areas_of_expertise',
|
||||
'expertise',
|
||||
'specialization',
|
||||
'property_type',
|
||||
'loan_type',
|
||||
];
|
||||
|
||||
for (final fv in fieldValues) {
|
||||
final slug = fv.fieldSlug.toLowerCase();
|
||||
if (!expertiseSlugs.any((s) => slug.contains(s))) continue;
|
||||
if (!expertiseSlugs.contains(slug)) continue;
|
||||
|
||||
if (fv.jsonValue is List) {
|
||||
for (final v in (fv.jsonValue as List)) {
|
||||
|
||||
Reference in New Issue
Block a user