Skip to content

Commit

Permalink
Get all messages before subscription
Browse files Browse the repository at this point in the history
  • Loading branch information
vknabel committed Jun 19, 2020
1 parent 3fc102e commit 0f53a10
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public struct PrivacyPolicy: View {
**Information Collection and Use**
For a better experience, while using our Service, I may require you to provide us with certain personally identifiable information, including but not limited to IP Adress, Push Notification Device Tokens. The information that I request will be retained on your device and is not collected by me in any way.
For a better experience, while using our Service, I may require you to provide us with certain personally identifiable information, including but not limited to Push Notification Device Tokens, Email Address. The information that I request will be retained on your device and is not collected by me in any way.
**Log Data**
Expand Down
1 change: 0 additions & 1 deletion PufferyServer/Sources/App/Services/MessageRepository.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ struct MessageRepository {
func latest(for subscription: Subscription) -> EventLoopFuture<[Message]> {
Message.query(on: db)
.filter(\Message.$channel.$id, .equal, subscription.$channel.id)
.filter(\Message.$createdAt, .greaterThanOrEqual, subscription.createdAt ?? Date.distantPast)
.sort(\.$createdAt, .descending)
.limit(20)
.all()
Expand Down

0 comments on commit 0f53a10

Please sign in to comment.