FEATURE: Add search operator to see all direct messages from a user (#7913)

* FEATURE: Add search operator to see all direct messages from a user

* Only show message if related messages >= 5

* Make "all messages" the hyperlink

* Review
This commit is contained in:
Osama Sayegh
2019-07-22 17:55:49 +03:00
committed by Robin Ward
parent 08b48b2ba6
commit 5fc5a7f5ae
11 changed files with 145 additions and 17 deletions

View File

@@ -137,6 +137,21 @@ Fabricator(:private_message_post, from: :post) do
raw "Ssshh! This is our secret conversation!"
end
Fabricator(:private_message_post_one_user, from: :post) do
user
topic do |attrs|
Fabricate(:private_message_topic,
user: attrs[:user],
created_at: attrs[:created_at],
subtype: TopicSubtype.user_to_user,
topic_allowed_users: [
Fabricate.build(:topic_allowed_user, user: attrs[:user]),
]
)
end
raw "Ssshh! This is our secret conversation!"
end
Fabricator(:post_via_email, from: :post) do
incoming_email
via_email true