Skip to content

Commit

Permalink
Handle {meta del} in MessageVC.
Browse files Browse the repository at this point in the history
Make deleted messages disappear.
  • Loading branch information
aforge committed Mar 2, 2023
1 parent 63a3260 commit e42ebb5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Tinodios/MessageInteractor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,10 @@ class MessageInteractor: DefaultComTopic.Listener, MessageBusinessLogic, Message
}

override func onData(data: MsgServerData?) {
guard let data = data, let topic = topic else { return }
guard let data = data, let topic = topic else {
self.loadMessagesFromCache()
return
}
let newData = data.getSeq >= (topic.seq ?? 0)
self.loadMessagesFromCache(scrollToMostRecentMessage: newData)
if let from = data.from, let seq = data.seq, !Cache.tinode.isMe(uid: from) {
Expand Down

0 comments on commit e42ebb5

Please # to comment.