IceCubesApp/Packages/Models
Paul Schuetz 06629cc397
Enhance the context menu for private messages (#1053)
* Enhance the message context menu

A direct message can now directly be bookmarked, the author can be publicly
mentioned and reported.

Signed-off-by: Paul Schuetz <pa.schuetz@web.de>

* Add options to the conversation list context menu

Since the latest message is shown in the conversation list, the user can now
interact with this message via the context menu similar to the messages in the
conversation history.
The "conversation" class had to be modified since
bookmarking and liking a message would have led to a race condition (depending
on the server) when fetching the conversations afterwards, so the only affected
the message is now immediately updated.

Signed-off-by: Paul Schuetz <pa.schuetz@web.de>

* Remove child view models

The child views models are removed, and the list row now only uses the conversation
object managed by the list view model.

Signed-off-by: Paul Schuetz <pa.schuetz@web.de>

* Make unmodified var let

The last state-var of a conversation isn't modified, instead, a new conversation
is created. Therefore, the var is now a let.

Signed-off-by: Paul Schuetz <pa.schuetz@web.de>

---------

Signed-off-by: Paul Schuetz <pa.schuetz@web.de>
2023-02-26 06:45:31 +01:00
..
Sources/Models Enhance the context menu for private messages (#1053) 2023-02-26 06:45:31 +01:00
Tests/ModelsTests Swiftformat 2023-01-17 11:36:01 +01:00
.gitignore Split Models from Network package 2022-11-29 09:28:17 +01:00
Package.swift Newer, better, faster HTML to Markdown converter (#610) 2023-02-04 08:16:19 +01:00
README.md Split Models from Network package 2022-11-29 09:28:17 +01:00

Models

A description of this package.