mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Send typing events for "last seen recently" users
This commit is contained in:
parent
8364cfc1ea
commit
2e79a50735
@ -133,8 +133,10 @@ private func requestActivity(postbox: Postbox, network: Network, accountPeerId:
|
||||
if let _ = peer as? TelegramUser {
|
||||
if let presence = transaction.getPeerPresence(peerId: peerId) as? TelegramUserPresence {
|
||||
switch presence.status {
|
||||
case .none, .recently, .lastWeek, .lastMonth:
|
||||
case .none, .lastWeek, .lastMonth:
|
||||
return .complete()
|
||||
case .recently:
|
||||
break
|
||||
case let .present(statusTimestamp):
|
||||
let timestamp = Int32(CFAbsoluteTimeGetCurrent() + NSTimeIntervalSince1970)
|
||||
if statusTimestamp < timestamp {
|
||||
|
Loading…
x
Reference in New Issue
Block a user