Skip to content

Commit

Permalink
chore(chat_section): remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
jrainville committed Dec 30, 2024
1 parent 751f274 commit f823c96
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 13 deletions.
4 changes: 0 additions & 4 deletions src/app/modules/main/chat_section/controller.nim
Original file line number Diff line number Diff line change
Expand Up @@ -554,10 +554,6 @@ proc dismissContactRequest*(self: Controller, publicKey: string, contactRequestI
proc blockContact*(self: Controller, publicKey: string) =
self.contactService.blockContact(publicKey)

proc addGroupMembers*(self: Controller, chatId: string, pubKeys: seq[string]) =
let communityId = if self.isCommunitySection: self.sectionId else: ""
self.chatService.addGroupMembers(communityId, chatId, pubKeys)

proc removeMemberFromGroupChat*(self: Controller, communityID: string, chatId: string, pubKey: string) =
self.chatService.removeMemberFromGroupChat(communityID, chatId, pubKey)

Expand Down
3 changes: 0 additions & 3 deletions src/app/modules/main/chat_section/io_interface.nim
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,6 @@ method dismissAllContactRequests*(self: AccessInterface) {.base.} =
method blockContact*(self: AccessInterface, publicKey: string) {.base.} =
raise newException(ValueError, "No implementation available")

method addGroupMembers*(self: AccessInterface, chatId: string, pubKeys: string) {.base.} =
raise newException(ValueError, "No implementation available")

method removeMemberFromGroupChat*(self: AccessInterface, communityID: string, chatId: string, pubKey: string) {.base.} =
raise newException(ValueError, "No implementation available")

Expand Down
3 changes: 0 additions & 3 deletions src/app/modules/main/chat_section/module.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1283,9 +1283,6 @@ method onNewMessagesReceived*(self: Module, sectionIdMsgBelongsTo: string, chatI
message.id, notificationType.int, chatTypeMsgBelongsTo == ChatType.OneToOne,
chatTypeMsgBelongsTo == ChatType.PrivateGroupChat)

method addGroupMembers*(self: Module, chatId: string, pubKeys: string) =
self.controller.addGroupMembers(chatId, self.convertPubKeysToJson(pubKeys))

method removeMemberFromGroupChat*(self: Module, communityID: string, chatId: string, pubKey: string) =
self.controller.removeMemberFromGroupChat(communityID, chatId, pubKey)

Expand Down
3 changes: 0 additions & 3 deletions src/app/modules/main/chat_section/view.nim
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,6 @@ QtObject:
proc removeCommunityChat*(self: View, chatId: string) {.slot} =
self.delegate.removeCommunityChat(chatId)

proc addGroupMembers*(self: View, chatId: string, pubKeys: string) {.slot.} =
self.delegate.addGroupMembers(chatId, pubKeys)

proc removeMemberFromGroupChat*(self: View, communityID: string, chatId: string, pubKey: string) {.slot.} =
self.delegate.removeMemberFromGroupChat(communityID, chatId, pubKey)

Expand Down

0 comments on commit f823c96

Please sign in to comment.