Skip to content

Commit 379b848

Browse files
authored
Merge pull request #310 from zapcannon87/developer
feat(IM): expose transient indicator of message
2 parents 70f81c4 + d125cf1 commit 379b848

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Sources/RTM/IMConversation.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ public class IMConversation {
268268
#endif
269269
}
270270

271+
/// Raw data of the conversation.
271272
public private(set) var rawData: RawData {
272273
set {
273274
self.sync(self._rawData = newValue)

Sources/RTM/IMMessage.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,9 @@ open class IMMessage {
216216
return message
217217
}
218218

219-
var isTransient: Bool = false
219+
/// Whether the message is transient.
220+
public internal(set) var isTransient: Bool = false
221+
220222
var isWill: Bool = false
221223

222224
/// ref: https://github.com/leancloud/avoscloud-push/blob/develop/push-server/doc/protocol.md#消息

0 commit comments

Comments
 (0)