add logs to debug
This commit is contained in:
parent
7af93d2ca8
commit
12a3ca366a
|
@ -99,6 +99,7 @@ proc getContactDetails*(self: Controller, contactId: string): ContactDetails =
|
|||
return self.contactsService.getContactDetails(contactId)
|
||||
|
||||
proc getCommunityById*(self: Controller, communityId: string): CommunityDto =
|
||||
echo "getCommunityById from activity_center module"
|
||||
return self.communityService.getCommunityById(communityId)
|
||||
|
||||
proc getActivityCenterNotifications*(self: Controller): seq[ActivityCenterNotificationDto] =
|
||||
|
|
|
@ -89,6 +89,7 @@ proc getChannelGroups*(self: Controller): seq[ChannelGroupDto] =
|
|||
return self.chatService.getChannelGroups()
|
||||
|
||||
proc getCommunityById*(self: Controller, communityId: string): CommunityDto =
|
||||
echo "getCommunityById from app_search module"
|
||||
return self.communityService.getCommunityById(communityId)
|
||||
|
||||
proc getChatDetailsForChatTypes*(self: Controller, types: seq[ChatType]): seq[ChatDto] =
|
||||
|
|
|
@ -188,6 +188,7 @@ proc getChatDetails*(self: Controller): ChatDto =
|
|||
return self.chatService.getChatById(self.chatId)
|
||||
|
||||
proc getCommunityDetails*(self: Controller): CommunityDto =
|
||||
echo "getCommunityById from chat_content module"
|
||||
return self.communityService.getCommunityById(self.sectionId)
|
||||
|
||||
proc getOneToOneChatNameAndImage*(self: Controller): tuple[name: string, image: string, largeImage: string] =
|
||||
|
|
|
@ -240,6 +240,7 @@ proc getChatDetails*(self: Controller): ChatDto =
|
|||
return self.chatService.getChatById(self.chatId)
|
||||
|
||||
proc getCommunityDetails*(self: Controller): CommunityDto =
|
||||
echo "getCommunityById from messages module"
|
||||
return self.communityService.getCommunityById(self.sectionId)
|
||||
|
||||
proc getOneToOneChatNameAndImage*(self: Controller):
|
||||
|
|
|
@ -381,6 +381,7 @@ proc isCommunity*(self: Controller): bool =
|
|||
return self.isCommunitySection
|
||||
|
||||
proc getMyCommunity*(self: Controller): CommunityDto =
|
||||
echo "getCommunityById from chat_section module"
|
||||
return self.communityService.getCommunityById(self.sectionId)
|
||||
|
||||
proc getCategories*(self: Controller, communityId: string): seq[Category] =
|
||||
|
|
|
@ -205,6 +205,7 @@ proc getAllCommunities*(self: Controller): seq[CommunityDto] =
|
|||
result = self.communityService.getAllCommunities()
|
||||
|
||||
proc getCommunityById*(self: Controller, communityId: string): CommunityDto =
|
||||
echo "getCommunityById from communities module"
|
||||
result = self.communityService.getCommunityById(communityId)
|
||||
|
||||
proc getCuratedCommunities*(self: Controller): seq[CommunityDto] =
|
||||
|
|
|
@ -138,4 +138,5 @@ proc getTokenMasterToken*(self: Controller, communityId: string): CommunityToken
|
|||
return self.communityTokensService.getTokenMasterToken(communityId)
|
||||
|
||||
proc getCommunityById*(self: Controller, communityId: string): CommunityDto =
|
||||
echo "getCommunityById from tokens module"
|
||||
return self.communityService.getCommunityById(communityId)
|
|
@ -501,6 +501,7 @@ proc switchTo*(self: Controller, sectionId, chatId, messageId: string) =
|
|||
self.events.emit(SIGNAL_MAKE_SECTION_CHAT_ACTIVE, data)
|
||||
|
||||
proc getCommunityById*(self: Controller, communityId: string): CommunityDto =
|
||||
echo "getCommunityById from main module"
|
||||
return self.communityService.getCommunityById(communityId)
|
||||
|
||||
proc getStatusForContactWithId*(self: Controller, publicKey: string): StatusUpdateDto =
|
||||
|
|
|
@ -727,6 +727,7 @@ QtObject:
|
|||
return toSeq(self.communities.keys)
|
||||
|
||||
proc getCommunityTokenBySymbol*(self: Service, communityId: string, symbol: string): CommunityTokenDto =
|
||||
echo "getCommunityById from getCommunityTokenBySymbol"
|
||||
let community = self.getCommunityById(communityId)
|
||||
for metadata in community.communityTokensMetadata:
|
||||
if metadata.symbol == symbol:
|
||||
|
@ -2002,6 +2003,7 @@ QtObject:
|
|||
return community.declinedRequestsToJoin[indexDeclined].publicKey
|
||||
|
||||
proc checkChatHasPermissions*(self: Service, communityId: string, chatId: string): bool =
|
||||
echo "getCommunityById from checkChatHasPermissions"
|
||||
let community = self.getCommunityById(communityId)
|
||||
for id, tokenPermission in community.tokenPermissions:
|
||||
if TokenPermissionType(tokenPermission.`type`) == TokenPermissionType.View or TokenPermissionType(tokenPermission.`type`) == TokenPermissionType.ViewAndPost:
|
||||
|
|
Loading…
Reference in New Issue