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:
pradeepkumar
2026-03-27 06:32:46 +05:30
parent ba87e3b091
commit 4c06d0d895
7 changed files with 77 additions and 15 deletions

View File

@@ -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)) {