mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2024-12-26 13:38:52 +00:00
Add new conversation parameter
This commit is contained in:
parent
aa5bb5da5e
commit
7aa258627f
@ -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)
|
||||
|
@ -16,4 +16,5 @@ export interface Conversation extends BaseConversation {
|
||||
lastActive: number,
|
||||
timeCreate: number,
|
||||
sawLastMessage: boolean,
|
||||
canEveryoneAddMembers: boolean,
|
||||
}
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user