1. 15 Jun, 2016 2 commits
  2. 14 Jun, 2016 1 commit
  3. 11 Jun, 2016 2 commits
  4. 08 Jun, 2016 6 commits
  5. 07 Jun, 2016 1 commit
    • Torsten Grote's avatar
      Merge branch '408-forum-list-unread-posts-badges' into 'master' · 1a1dd808
      Torsten Grote authored
      Adds badges to the forum list that indicate unread posts
      
      This MR adds  badges to the forum list that indicate unread posts. It does so by extending the compound view `TextAvatarView` and provides convenient setters that take care of the required UI changes. The new badge can also be used to indicate a problem with the forum.
      
      ![device-2016-06-02-134048](/uploads/133f365f5654be304f590a4f5b667d06/device-2016-06-02-134048.png)![device-2016-06-02-134453](/uploads/423a88f6306a558828181f0c539aa1cb/device-2016-06-02-134453.png)
      
      I decided not to check if the forum is shared from someone or with someone and indicate a problem in this case, because this requires iterating two times over all contacts and their group metadata for each forum. If someone considers it important to check for this information, we can create a ticket for doing this within the forum and not in the forum list.
      
      See merge request !207
      1a1dd808
  6. 06 Jun, 2016 1 commit
    • Ernir Erlingsson's avatar
      Merge branch '409-blog-fragment-in-navigation-drawer-with-tabs' into 'master' · 02f432c0
      Ernir Erlingsson authored
      Blog Fragment in Navigation Drawer with Tabs
      
      This replaces the custom layouts in the navigation drawer with a
      `NavigationView` and adds a menu entry for Blogs.
      
      A Main Blogs fragment is added that holds a `TabLayout` and a
      `ViewPager`. Five tabs are already added, but they just have a single
      placeholder fragment that is to be replaced by the actual fragments.
      
      Please note that the header in the navigation drawer is just provisional. I am sure @Megalox can design a better one.
      
      ![device-2016-06-02-191101](/uploads/ddffee792f67fad01158d7adc7ca904d/device-2016-06-02-191101.png)
      ![device-2016-06-02-191048](/uploads/a5e6def118646a02c6bcbf17e0398484/device-2016-06-02-191048.png)
      
      Closes #409
      
      See merge request !210
      02f432c0
  7. 03 Jun, 2016 2 commits
    • Torsten Grote's avatar
      Blog Fragment in Navigation Drawer with Tabs · 3f838b04
      Torsten Grote authored
      This replaces the custom layouts in the navigation drawer with a
      `NavigationView` and adds a menu entry for Blogs.
      
      A Main Blogs fragment is added that holds a `TabLayout` and a
      `ViewPager`. Five tabs are already added, but they just have a single
      placeholder fragment that is to be replaced by the actual fragments.
      
      Closes #409
      3f838b04
    • Torsten Grote's avatar
      This commit adds badges to the forum list that indicate unread posts. · 5d06f420
      Torsten Grote authored
      It does so by extending the compound view `TextAvatarView` and provides
      convienient setters that take care of the required UI changes.
      The new badge can also be used to indicate a problem with the forum.
      
      Closes #408
      5d06f420
  8. 02 Jun, 2016 2 commits
  9. 01 Jun, 2016 1 commit
  10. 31 May, 2016 2 commits
  11. 30 May, 2016 1 commit
  12. 28 May, 2016 3 commits
    • str4d's avatar
      Merge branch '382-message-dependencies-2' into 'master' · 661140f6
      str4d authored
      Message Dependencies
      
      This MR adds a new table to the database to hold message dependencies.
      It introduces two more message states  (pending and delivered) and completely changes the validation and message delivery logic.
      
      Since this is a **very invasive** change, please **review carefully**. It is better to catch issues now than having to debug things later. If you notice an area without tests, please let me know. I tried to have tests for all changes.
      
      Unfortunately, this MR turned out rather large, but most of it are actually tests and you can review one commit after the other without needing to see the full changelog.
      
      In order to reflect the new states, things that were previously true for `VALID` messages have been changed to now be true for `DELIVERED` messages. This might have changed the semantics in some places and can have unindented side-effects.
      
      The `DatabaseComponent` was extended with methods for:
      * adding dependencies
      * getting dependencies and states of a message
      * getting messages that depend on a message (dependents) and their states
      * getting messages to be delivered (by startup hook)
      * getting pending messages to be possibly delivered (by startup hook)
      
      The `valid` column in the database was renamed to `state` along with the associated methods to better reflect its new extended meaning.
      
      Since pending messages should not be available to clients, many database queries have been modified to only return results for delivered messages. I might have missed some. Please check carefully. Also you might want to think about how you could create arbitrarily large transactions by sending malicious messages.
      
      Please note that the database version was bumped in this MR.
      
      Closes #382
      
      See merge request !198
      661140f6
    • str4d's avatar
    • str4d's avatar
      Update comments · 7ac7fae3
      str4d authored
      7ac7fae3
  13. 26 May, 2016 4 commits
    • Torsten Grote's avatar
      Let the ForumValidator return parent posts as dependency · d3b83a50
      Torsten Grote authored
      and add integration tests that make sure that dependencies are handled
      properly.
      d3b83a50
    • Torsten Grote's avatar
      Implement new message validation logic · 5561532c
      Torsten Grote authored
      that handles message dependencies reported from clients.
      
      The MessageValidatedEvent has been renamed into a MessageDeliveredEvent
      since there were no real use cases for the former any more.
      5561532c
    • Torsten Grote's avatar
      Add Message Dependencies to Database · b03d0a20
      Torsten Grote authored
      This adds a new table to the database to hold message dependencies.
      It introduces two more message states: pending and delivered
      The valid column in the database was renamed to state to better reflect
      its new extended meaning.
      
      The DatabaseComponent was extended with three methods for:
      * adding dependencies
      * getting dependencies of a message
      * getting messages that depend on a message (dependents)
      * getting messages to be delivered (by startup hook)
      * getting pending messages to be possibly delivered (by startup hook)
      
      In order to reflect the new states, things that were previously true for
      VALID messages have been changed to now be true for DELIVERED messages.
      
      Since pending messages should not be available to clients, many database
      queries have been modified to only return results for delivered
      messages.
      
      All added methods and changes should come with updated unit tests.
      
      Please note that the database version was bumped in this commit.
      b03d0a20
    • Ernir Erlingsson's avatar
      Merge branch '393-message-tree' into 'master' · 512940e8
      Ernir Erlingsson authored
      Sort threaded messages generic
      
      Constructed a generic that we can use to sort threaded messages.
      
      Closes #393
      
      See merge request !203
      512940e8
  14. 25 May, 2016 1 commit
  15. 24 May, 2016 2 commits
  16. 20 May, 2016 5 commits
  17. 19 May, 2016 4 commits