Format message statuses with date if possible.

// FREEBIE
pull/1/head
Matthew Chen 8 years ago
parent d557817bb4
commit 3a39a1ba51

@ -5,7 +5,6 @@
@interface DateUtil : NSObject @interface DateUtil : NSObject
+ (NSDateFormatter *)dateFormatter; + (NSDateFormatter *)dateFormatter;
//+ (NSDateFormatter *)weekdayFormatter;
+ (NSDateFormatter *)timeFormatter; + (NSDateFormatter *)timeFormatter;
+ (BOOL)dateIsOlderThanOneDay:(NSDate *)date; + (BOOL)dateIsOlderThanOneDay:(NSDate *)date;
+ (BOOL)dateIsOlderThanOneWeek:(NSDate *)date; + (BOOL)dateIsOlderThanOneWeek:(NSDate *)date;

@ -833,18 +833,12 @@
message status for message delivered to their recipient. */ message status for message delivered to their recipient. */
"MESSAGE_STATUS_DELIVERED" = "Delivered"; "MESSAGE_STATUS_DELIVERED" = "Delivered";
/* message status for messages delivered to the recipient. Embeds: {{the date and time the message was delivered}}. */
"MESSAGE_STATUS_DELIVERED_WITH_TIMESTAMP_FORMAT" = "Delivered %@";
/* message footer for failed messages */ /* message footer for failed messages */
"MESSAGE_STATUS_FAILED" = "Sending failed. Tap for info."; "MESSAGE_STATUS_FAILED" = "Sending failed. Tap for info.";
/* message footer for read messages */ /* message footer for read messages */
"MESSAGE_STATUS_READ" = "Read"; "MESSAGE_STATUS_READ" = "Read";
/* message status for messages read by the recipient. Embeds: {{the date and time the message was read}}. */
"MESSAGE_STATUS_READ_WITH_TIMESTAMP_FORMAT" = "Read %@";
/* message status while message is sending. */ /* message status while message is sending. */
"MESSAGE_STATUS_SENDING" = "Sending..."; "MESSAGE_STATUS_SENDING" = "Sending...";

Loading…
Cancel
Save