mirror of
https://github.com/BlueBubblesApp/bluebubbles-app.git
synced 2025-08-06 11:19:56 +08:00
Revert "Revert "more message match improvements""
This reverts commit e7e73af99d99a843444a915370d3ad077b23d76b.
This commit is contained in:
@ -282,7 +282,7 @@ class Message {
|
||||
set dateDelivered(DateTime? d) => _dateDelivered.value = d;
|
||||
|
||||
final RxBool _isDelivered = RxBool(false);
|
||||
bool get isDelivered => _isDelivered.value;
|
||||
bool get isDelivered => (dateDelivered != null) ? true : _isDelivered.value;
|
||||
set isDelivered(bool b) => _isDelivered.value = b;
|
||||
|
||||
final Rxn<DateTime> _dateEdited = Rxn<DateTime>();
|
||||
@ -1113,6 +1113,9 @@ class Message {
|
||||
}
|
||||
|
||||
bool isNewerThan(Message other) {
|
||||
// If the other message has an error, we want to show that.
|
||||
if (error == 0 && other.error != 0) return false;
|
||||
|
||||
// Check null dates in order of what should be filled in first -> last
|
||||
if (dateCreated == null && other.dateCreated != null) return false;
|
||||
if (dateCreated != null && other.dateCreated == null) return true;
|
||||
|
Reference in New Issue
Block a user