Lenkelheit / Coursework

This repository contains Instagram-like application
Apache License 2.0
1 stars 0 forks source link

Feature/rework comment section #157

Closed iamprovidence closed 5 years ago

iamprovidence commented 5 years ago

Description

The best way to solve it is write special ViewModel for CommentItem, but if so it means that every comment would store command for like and for delete. So I decided to write only a wrapper for Comment and still use this command from PhotoInsideViewModel. In this case we hold only single instance of like/delete comment commands. Also with this wrappers we calculate like/dislike amount not every time per clicking but once per showing. This should speed up the process by far

I had not simplified styles and there is still some special converters but at least one is removed.

Fixes # (issues)

93

Opens # (issues)

Type of change

Checklist:

Design

If you have change design fill in this part

A picture of design before pull request

A picture of design after pull request