parent
e41d73eae3
commit
136921c0ad
|
@ -306,9 +306,6 @@ proc getContactNameAndImage*(self: Controller, contactId: string):
|
||||||
proc getContactDetails*(self: Controller, contactId: string): ContactDetails =
|
proc getContactDetails*(self: Controller, contactId: string): ContactDetails =
|
||||||
return self.contactsService.getContactDetails(contactId)
|
return self.contactsService.getContactDetails(contactId)
|
||||||
|
|
||||||
proc getStatusForContact*(self: Controller, contactId: string): StatusUpdateDto =
|
|
||||||
return self.contactsService.getStatusForContactWithId(contactId)
|
|
||||||
|
|
||||||
proc resolveENS*(self: Controller, ensName: string, uuid: string = "", reason: string = "") =
|
proc resolveENS*(self: Controller, ensName: string, uuid: string = "", reason: string = "") =
|
||||||
self.contactsService.resolveENS(ensName, uuid, reason)
|
self.contactsService.resolveENS(ensName, uuid, reason)
|
||||||
|
|
||||||
|
|
|
@ -227,8 +227,6 @@ proc createChannelGroupItem[T](self: Module[T], c: ChannelGroupDto): SectionItem
|
||||||
c.muted,
|
c.muted,
|
||||||
c.members.map(proc(member: ChatMember): MemberItem =
|
c.members.map(proc(member: ChatMember): MemberItem =
|
||||||
let contactDetails = self.controller.getContactDetails(member.id)
|
let contactDetails = self.controller.getContactDetails(member.id)
|
||||||
let statusUpdateDto = self.controller.getStatusForContact(member.id)
|
|
||||||
let status = statusUpdateDto.statusType.int
|
|
||||||
result = initMemberItem(
|
result = initMemberItem(
|
||||||
pubKey = member.id,
|
pubKey = member.id,
|
||||||
displayName = contactDetails.displayName,
|
displayName = contactDetails.displayName,
|
||||||
|
@ -736,7 +734,7 @@ method resolvedENS*[T](self: Module[T], publicKey: string, address: string, uuid
|
||||||
|
|
||||||
method contactsStatusUpdated*[T](self: Module[T], statusUpdates: seq[StatusUpdateDto]) =
|
method contactsStatusUpdated*[T](self: Module[T], statusUpdates: seq[StatusUpdateDto]) =
|
||||||
for s in statusUpdates:
|
for s in statusUpdates:
|
||||||
let status = OnlineStatus(s.statusType.int)
|
let status = toOnlineStatus(s.statusType)
|
||||||
self.view.activeSection().setOnlineStatusForMember(s.publicKey, status)
|
self.view.activeSection().setOnlineStatusForMember(s.publicKey, status)
|
||||||
|
|
||||||
method contactUpdated*[T](self: Module[T], publicKey: string) =
|
method contactUpdated*[T](self: Module[T], publicKey: string) =
|
||||||
|
|
Loading…
Reference in New Issue