work on archived chats
This commit is contained in:
@@ -12,8 +12,9 @@ public class ChatEntry {
|
||||
private String imageUrl;
|
||||
private String type;
|
||||
private LocalDateTime lastMessageTime;
|
||||
private boolean archived = false;
|
||||
|
||||
|
||||
// 🔹 نقشها
|
||||
private boolean isOwner = false;
|
||||
private boolean isAdmin = false;
|
||||
private JSONObject permissions;
|
||||
@@ -28,7 +29,6 @@ public class ChatEntry {
|
||||
this.lastMessageTime = lastMessageTime;
|
||||
}
|
||||
|
||||
// ✅ کانستراکتور اضافهشده برای پشتیبانی از نقشها (اختیاری، برای استفادههای جدید)
|
||||
public ChatEntry(UUID internalId, String displayId, String name, String imageUrl, String type, LocalDateTime lastMessageTime, boolean isOwner, boolean isAdmin) {
|
||||
this(internalId, displayId, name, imageUrl, type, lastMessageTime);
|
||||
this.isOwner = isOwner;
|
||||
@@ -41,7 +41,6 @@ public class ChatEntry {
|
||||
|
||||
}
|
||||
|
||||
// 🟩 گتر و ستر جدید
|
||||
public boolean isOwner() {
|
||||
return isOwner;
|
||||
}
|
||||
@@ -108,4 +107,12 @@ public class ChatEntry {
|
||||
|
||||
|
||||
|
||||
public boolean isArchived() {
|
||||
return archived;
|
||||
}
|
||||
|
||||
public void setArchived(boolean archived) {
|
||||
this.archived = archived;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user