[smuxi: 2/7] Frontend-GNOME: Fix coding style.



commit 1f8f01a763b2e8a718ca41f90665897327299958
Author: Sebastian Poeplau <sebastian poeplau googlemail com>
Date:   Sat Feb 14 20:01:41 2015 +0100

    Frontend-GNOME: Fix coding style.

 src/Frontend-GNOME/Views/Chats/ChatView.cs |   28 ++++++++++++++++------------
 1 files changed, 16 insertions(+), 12 deletions(-)
---
diff --git a/src/Frontend-GNOME/Views/Chats/ChatView.cs b/src/Frontend-GNOME/Views/Chats/ChatView.cs
index 48fa094..6f7104b 100644
--- a/src/Frontend-GNOME/Views/Chats/ChatView.cs
+++ b/src/Frontend-GNOME/Views/Chats/ChatView.cs
@@ -589,19 +589,23 @@ namespace Smuxi.Frontend.Gnome
         {
             _OutputMessageTextView.UpdateMarkerline();
             
-            if (Frontend.EngineVersion >= new Version(0, 12)) {
-                var lastSeenMessage = _OutputMessageTextView.LastMessage;
-                if (lastSeenMessage != null) {
-                    ThreadPool.QueueUserWorkItem(delegate {
-                        try {
-                            // REMOTING CALL
-                            _ChatModel.LastSeenMessage = lastSeenMessage.TimeStamp;
-                        } catch (Exception ex) {
-                            Frontend.ShowException(ex);
-                        }
-                    });
-                }
+            if (Frontend.EngineVersion < new Version(0, 12)) {
+                return;
             }
+            
+            var lastSeenMessage = _OutputMessageTextView.LastMessage;
+            if (lastSeenMessage == null) {
+                return;
+            }
+            
+            ThreadPool.QueueUserWorkItem(delegate {
+                try {
+                    // REMOTING CALL
+                    _ChatModel.LastSeenMessage = lastSeenMessage.TimeStamp;
+                } catch (Exception ex) {
+                    Frontend.ShowException(ex);
+                }
+            });
         }
         
         public virtual void AddMessage(MessageModel msg)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]