From 558a3d9de261edc60510b9c55b5af81f4dd813e7 Mon Sep 17 00:00:00 2001 From: inga-lovinde <52715130+inga-lovinde@users.noreply.github.com> Date: Mon, 5 Jul 2010 15:18:13 +0000 Subject: [PATCH] Fixed last message date in pm conversations --- Builder/IISMainHandler/build.txt | 2 +- Builder/IISUploadHandler/build.txt | 2 +- Common/dataobjects/PMConversation.cs | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Builder/IISMainHandler/build.txt b/Builder/IISMainHandler/build.txt index 989ba2b..5ae4837 100644 --- a/Builder/IISMainHandler/build.txt +++ b/Builder/IISMainHandler/build.txt @@ -1 +1 @@ -584 \ No newline at end of file +585 \ No newline at end of file diff --git a/Builder/IISUploadHandler/build.txt b/Builder/IISUploadHandler/build.txt index 1a7d3a1..ab760c9 100644 --- a/Builder/IISUploadHandler/build.txt +++ b/Builder/IISUploadHandler/build.txt @@ -1 +1 @@ -318 \ No newline at end of file +319 \ No newline at end of file diff --git a/Common/dataobjects/PMConversation.cs b/Common/dataobjects/PMConversation.cs index 45ecbf8..b0484a8 100644 --- a/Common/dataobjects/PMConversation.cs +++ b/Common/dataobjects/PMConversation.cs @@ -326,6 +326,7 @@ namespace FLocal.Common.dataobjects { new Dictionary { { TableSpec.FIELD_TOTALMESSAGES, new IncrementFieldValue() }, { TableSpec.FIELD_LASTMESSAGEID, new TwoWayReferenceFieldValue(insertPmSender, TwoWayReferenceFieldValue.GREATEST) }, + { TableSpec.FIELD_LASTMESSAGEDATE, new ScalarFieldValue(DateTime.Now.ToUTCString()) }, }, new ComplexCondition( ConditionsJoinType.AND, @@ -354,6 +355,7 @@ namespace FLocal.Common.dataobjects { new Dictionary { { TableSpec.FIELD_TOTALMESSAGES, new IncrementFieldValue() }, { TableSpec.FIELD_LASTMESSAGEID, new TwoWayReferenceFieldValue(insertPmReceiver, TwoWayReferenceFieldValue.GREATEST) }, + { TableSpec.FIELD_LASTMESSAGEDATE, new ScalarFieldValue(DateTime.Now.ToUTCString()) }, }, new ComplexCondition( ConditionsJoinType.AND,