Skip to content
Snippets Groups Projects

Add method to get thread list for member.

1 unresolved thread

Closes #3482630

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
78 78 return FALSE;
79 79 }
80 80
81 /**
82 * {@inheritdoc}
83 */
84 public function getThreadIdsForMember(int $member_id) {
85 // Select threads common for the given members.
86 $query = $this->database->select('private_message_thread__members', 'pmt')
87 ->fields('pmt', ['entity_id'])
88 ->condition('members_target_id', $member_id);
89 $threds = $query->execute()->fetchCol();
  • Comment on lines +86 to +89

    If a 3rd-party module changes the storage of private_message_thread entity type, this will not work anymore. We need to use an entity query and not do direct queries against the database.

  • Please register or sign in to reply
Please register or sign in to reply
Loading