mirror of https://github.com/oxen-io/session-ios
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
1.2 KiB
Swift
19 lines
1.2 KiB
Swift
|
|
public protocol MessageReceiverDelegate {
|
|
|
|
func isBlocked(_ publicKey: String) -> Bool
|
|
func updateProfile(for publicKey: String, from profile: VisibleMessage.Profile, using transaction: Any)
|
|
func showTypingIndicatorIfNeeded(for senderPublicKey: String)
|
|
func hideTypingIndicatorIfNeeded(for senderPublicKey: String)
|
|
func cancelTypingIndicatorsIfNeeded(for senderPublicKey: String)
|
|
func notifyUserIfNeeded(for message: Any, threadID: String)
|
|
func markMessagesAsRead(_ timestamps: [UInt64], from senderPublicKey: String, at timestamp: UInt64)
|
|
func setExpirationTimer(to duration: UInt32, for senderPublicKey: String, groupPublicKey: String?, using transaction: Any)
|
|
func disableExpirationTimer(for senderPublicKey: String, groupPublicKey: String?, using transaction: Any)
|
|
func handleNewGroup(_ message: ClosedGroupUpdate, using transaction: Any)
|
|
func handleGroupUpdate(_ message: ClosedGroupUpdate, using transaction: Any)
|
|
func handleSenderKeyRequest(_ message: ClosedGroupUpdate, using transaction: Any)
|
|
func handleSenderKey(_ message: ClosedGroupUpdate, using transaction: Any)
|
|
func parseAttachments(from protos: [SNProtoAttachmentPointer]) -> [VisibleMessage.Attachment]
|
|
}
|