Skip to content

Commit 27bb0ae

Browse files
committed
Merge branch 'devel' of https://github.com/tinode/ios into devel
2 parents 99244e5 + 710a7a3 commit 27bb0ae

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

TinodeSDK/MeTopic.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ open class MeTopic<DP: Codable & Mergeable>: Topic<DP, PrivateType, DP, PrivateT
223223
topic.online = false
224224
topic.lastSeen = LastSeen(when: Date(), ua: nil)
225225
case .kMsg: // new message received
226-
topic.setSetAndFetch(newSeq: pres.seq)
226+
topic.setSeqAndFetch(newSeq: pres.seq)
227227
if pres.act == nil || tinode!.isMe(uid: pres.act!) {
228228
assignRead(to: topic, read: pres.seq)
229229
}

TinodeSDK/Topic.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public protocol TopicProto: AnyObject {
5858
func updateAccessMode(ac: AccessChange?) -> Bool
5959
func persist()
6060
func expunge(hard: Bool)
61-
func setSetAndFetch(newSeq: Int?)
61+
func setSeqAndFetch(newSeq: Int?)
6262
func getMessage(byEffectiveSeq seqId: Int) -> Message?
6363

6464
func allMessagesReceived(count: Int?)
@@ -1434,7 +1434,7 @@ open class Topic<DP: Codable & Mergeable, DR: Codable & Mergeable, SP: Codable,
14341434
return result
14351435
}
14361436

1437-
public func setSetAndFetch(newSeq: Int?) {
1437+
public func setSeqAndFetch(newSeq: Int?) {
14381438
guard let newSeq = newSeq, newSeq > description.getSeq else { return }
14391439
let limit = newSeq - description.getSeq
14401440
self.setSeq(seq: newSeq)

0 commit comments

Comments
 (0)