|
|
|
@ -479,10 +479,6 @@ export class ConversationModel extends Backbone.Model<ConversationAttributes> {
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public async getUnread() {
|
|
|
|
|
return Data.getUnreadByConversation(this.id);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public async getUnreadCount() {
|
|
|
|
|
const unreadCount = await Data.getUnreadCountByConversation(this.id);
|
|
|
|
|
|
|
|
|
@ -1908,6 +1904,10 @@ export class ConversationModel extends Backbone.Model<ConversationAttributes> {
|
|
|
|
|
: null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private async getUnread() {
|
|
|
|
|
return Data.getUnreadByConversation(this.id);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @returns The open group conversationId this conversation originated from
|
|
|
|
|