don't issue slrp_highest if we're viewing users mailboxes.
authorWilfried Goesgens <willi@arangodb.com>
Thu, 28 Jan 2016 07:46:17 +0000 (08:46 +0100)
committerWilfried Goesgens <willi@arangodb.com>
Thu, 28 Jan 2016 07:46:17 +0000 (08:46 +0100)
webcit/roomops.c

index 874aba189a4a6a00fbfa52ddd860770c7a486386..2ea692862e01c572c76ffe6b0be416b7db1d8f83 100644 (file)
@@ -113,11 +113,14 @@ void dotskip(void) {
 }
 
 void dotgoto(void) {
+       wcsession *WCC = WC;
        if (!havebstr("room")) {
                readloop(readnew, eUseDefault);
                return;
        }
-       if (WC->CurRoom.view != VIEW_MAILBOX) { /* dotgoto acts like dotskip when we're in a mailbox view */
+       if ((WCC->CurRoom.view != VIEW_MAILBOX)  &&
+           (WCC->CurRoom.view != WCC->CurRoom.view)) {
+               /* dotgoto acts like dotskip when we're in a mailbox view */
                slrp_highest();
        }
        smart_goto(sbstr("room"));