Skip to content

Commit 3962270

Browse files
authored
Expose NewLocationInfo.init (#3815)
* Expose NewLocationInfo initializer * Update CHANGELOG.md * Correct markdown formatting for NewLocationInfo.init
1 parent 71319c4 commit 3962270

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
44
# Upcoming
55

66
## StreamChat
7+
### ✅ Added
8+
- Expose `NewLocationInfo.init` [#3815](https://github.com/GetStream/stream-chat-swift/pull/3815)
79
### 🐞 Fixed
810
- Fix querying threads by disabled channels crashing [#3813](https://github.com/GetStream/stream-chat-swift/pull/3813)
911

Sources/StreamChat/Models/Location/NewLocationInfo.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,10 @@ public struct NewLocationInfo {
1212
public let longitude: Double
1313
/// The end date of the location sharing if it is a live location.
1414
public let endAt: Date?
15+
16+
public init(latitude: Double, longitude: Double, endAt: Date?) {
17+
self.latitude = latitude
18+
self.longitude = longitude
19+
self.endAt = endAt
20+
}
1521
}

0 commit comments

Comments
 (0)