notify pre-offer call message
This commit is contained in:
parent
63d75040a6
commit
8a6be4fc5b
|
@ -219,6 +219,9 @@ public final class MessageSender : NSObject {
|
|||
message.serverHash = hash
|
||||
MessageSender.handleSuccessfulMessageSend(message, to: destination, isSyncMessage: isSyncMessage, using: transaction)
|
||||
var shouldNotify = ((message is VisibleMessage || message is UnsendRequest) && !isSyncMessage)
|
||||
if let callMessage = message as? CallMessage, case .preOffer = callMessage.kind {
|
||||
shouldNotify = true
|
||||
}
|
||||
/*
|
||||
if let closedGroupControlMessage = message as? ClosedGroupControlMessage, case .new = closedGroupControlMessage.kind {
|
||||
shouldNotify = true
|
||||
|
|
|
@ -364,7 +364,7 @@ BOOL IsNoteToSelfEnabled(void)
|
|||
|
||||
if (!self.shouldBeVisible) {
|
||||
self.shouldBeVisible = YES;
|
||||
[super saveWithTransaction:transaction];
|
||||
[self saveWithTransaction:transaction];
|
||||
} else {
|
||||
[self touchWithTransaction:transaction];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue