another.im-ios/AnotherXMPP/modules/presence/PresenceModule.swift
2024-12-26 14:12:19 +01:00

23 lines
634 B
Swift

import Foundation
// NSString* const kSubBoth = @"both";
// NSString* const kSubNone = @"none";
// NSString* const kSubTo = @"to";
// NSString* const kSubFrom = @"from";
// NSString* const kSubRemove = @"remove";
// NSString* const kAskSubscribe = @"subscribe";
// TODO: Cancel subscr. request when contact deleted from roster
// Update when server sends roster push also
final class PresenceModule: XmppModule {
let id = "Presence module"
func reduce(oldState: ClientState, with _: Event) -> ClientState {
oldState
}
func process(state _: ClientState, with _: Event) async -> Event? {
nil
}
}