Merge branch 'mkirk/create-missed-call-notification-in-thread'
This commit is contained in:
commit
33df1fb6c0
@ -16,6 +16,7 @@ typedef enum {
|
||||
// These call types are used until the call connects.
|
||||
RPRecentCallTypeOutgoingIncomplete,
|
||||
RPRecentCallTypeIncomingIncomplete,
|
||||
RPRecentCallTypeMissedBecauseOfChangedIdentity,
|
||||
} RPRecentCallType;
|
||||
|
||||
@interface TSCall : TSInteraction <OWSReadTracking>
|
||||
|
||||
@ -36,7 +36,7 @@ NSUInteger TSCallCurrentSchemaVersion = 1;
|
||||
|
||||
_callSchemaVersion = TSCallCurrentSchemaVersion;
|
||||
_callType = callType;
|
||||
if (_callType == RPRecentCallTypeMissed) {
|
||||
if (_callType == RPRecentCallTypeMissed || _callType == RPRecentCallTypeMissedBecauseOfChangedIdentity) {
|
||||
_read = NO;
|
||||
} else {
|
||||
_read = YES;
|
||||
@ -74,6 +74,8 @@ NSUInteger TSCallCurrentSchemaVersion = 1;
|
||||
return NSLocalizedString(@"OUTGOING_INCOMPLETE_CALL", @"");
|
||||
case RPRecentCallTypeIncomingIncomplete:
|
||||
return NSLocalizedString(@"INCOMING_INCOMPLETE_CALL", @"");
|
||||
case RPRecentCallTypeMissedBecauseOfChangedIdentity:
|
||||
return NSLocalizedString(@"INFO_MESSAGE_MISSED_CALL_DUE_TO_CHANGED_IDENITY", @"info message text shown in conversation view");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user