611 #endif |
614 #endif |
612 |
615 |
613 // This will mark the entry as "sent" or "delivered" or "failed" |
616 // This will mark the entry as "sent" or "delivered" or "failed" |
614 // or something similar... |
617 // or something similar... |
615 TBool doNotUpdate = EFalse; |
618 TBool doNotUpdate = EFalse; |
616 if ( iLogUpdatedEvent->Status().CompareF( KLogsMsgReadText ) == 0 ) |
619 if ( iLogUpdatedEvent->Status().CompareF( KLogsMsgReadText ) == 0 ) |
617 { |
620 { |
618 // If the status is already "read" we don't change it |
621 // If the status is already "read" we don't change it |
619 // This is a case where a delivery report arrives after a read report. |
622 // This is a case where a delivery report arrives after a read report. |
620 // Highly unlikely, but possible |
623 // Highly unlikely, but possible |
621 doNotUpdate = ETrue; |
624 doNotUpdate = ETrue; |
622 #ifndef _NO_MMSS_LOGGING_ |
625 #ifndef _NO_MMSS_LOGGING_ |
623 TMmsLogger::Log( _L("Status already updated to read - do not update again")); |
626 TMmsLogger::Log( _L("Status already updated to read - do not update again")); |
624 #endif |
627 #endif |
625 } |
628 } |
626 else |
629 else |
627 { |
630 { |
628 iLogUpdatedEvent->SetStatus( iLogEvent->Status() ); |
631 iLogUpdatedEvent->SetStatus( iLogEvent->Status() ); |
629 // Clear the event read flag in case the user has cleared the log view |
632 // Clear the event read flag in case the user has cleared the log view |
630 // We want this to become visible again. |
633 // We want this to become visible again. |
631 iLogUpdatedEvent->ClearFlags( KLogEventRead ); |
634 iLogUpdatedEvent->ClearFlags( KLogEventRead ); |
632 } |
635 } |
633 // if we have a message id, store it |
636 // if we have a message id, store it |
634 if ( ( iLogUpdatedEvent->Data().Length() <= 0 ) && |
637 if ( ( iLogUpdatedEvent->Data().Length() <= 0 ) && |
635 ( iLogEvent->Data().Length() > 0 ) ) |
638 ( iLogEvent->Data().Length() > 0 ) ) |
636 { |
639 { |
637 iLogUpdatedEvent->SetDataL( iLogEvent->Data() ); |
640 iLogUpdatedEvent->SetDataL( iLogEvent->Data() ); |