Update DM and profile handling

This commit is contained in:
AidarKC
2026-09-02 14:24:44 +04:00
parent 53cd55a2a0
commit 065616a18b
12 changed files with 368 additions and 862 deletions
@@ -364,6 +364,8 @@ public final class DmDialogStateDAO {
String nextRelation = current.relationFlag();
if ("close_friend".equalsIgnoreCase(relationFlag) || "close_friend".equalsIgnoreCase(nextRelation)) {
nextRelation = "close_friend";
} else if ("friend".equalsIgnoreCase(relationFlag) || "friend".equalsIgnoreCase(nextRelation)) {
nextRelation = "friend";
} else if ("contact".equalsIgnoreCase(relationFlag) || "contact".equalsIgnoreCase(nextRelation)) {
nextRelation = "contact";
} else {
@@ -440,7 +442,7 @@ public final class DmDialogStateDAO {
private String normalizeRelationFlag(String value) {
String clean = normalize(value).toLowerCase(Locale.ROOT);
if ("close_friend".equals(clean) || "contact".equals(clean)) return clean;
if ("close_friend".equals(clean) || "friend".equals(clean) || "contact".equals(clean)) return clean;
return "none";
}