1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2024-11-22 05:19:22 +00:00

Add new conversation parameter

This commit is contained in:
Pierre HUBERT 2020-04-25 18:02:08 +02:00
parent aa5bb5da5e
commit 7aa258627f
3 changed files with 4 additions and 1 deletions

View File

@ -372,6 +372,7 @@ export class ConversationsController {
following: c.following ? 1 : 0,
saw_last_message: c.sawLastMessage ? 1 : 0,
members: [...c.members],
canEveryoneAddMembers: c.canEveryoneAddMembers,
can_have_call: CallsHelper.CanHaveCall(c),
can_have_video_call: CallsHelper.CanHaveVideoCAll(c),
has_call_now: CallsController.IsHavingCall(c.id)

View File

@ -16,4 +16,5 @@ export interface Conversation extends BaseConversation {
lastActive: number,
timeCreate: number,
sawLastMessage: boolean,
canEveryoneAddMembers: boolean,
}

View File

@ -747,7 +747,8 @@ export class ConversationsHelper {
timeCreate: row.time_add,
following: row.following,
sawLastMessage: row.saw_last_message == 1,
members: await this.GetConversationMembers(row.id)
members: await this.GetConversationMembers(row.id),
canEveryoneAddMembers: row.can_everyone_add_members == 1,
}
}