Commit Graph

15 Commits

Author SHA1 Message Date
Igor Sirotin 2e6ccea91a test fix 2023-05-02 17:00:54 -04:00
Patryk Osmaczko e822c37716 feat(chat): implement marking specific messages as seen
iterates: #9069
2023-04-17 18:53:42 +02:00
Boris Melnik cbdc3e61b5 fix(images): Display image placeholder when image from album not loaded
Fixes: #9990
2023-04-07 15:42:12 +03:00
Boris Melnik 30b4d9eb5c fix(chat): Sent images with text correctly
Fixes: #9564 #6374
2023-03-24 14:33:17 +03:00
Jonathan Rainville 2d2929872e refactor: add parsedText to message_item to parse msg on mention change 2023-03-21 10:09:51 -04:00
Alex Jbanca bf1d59c0ad perf(chatScroll): Avoid calling the backend on delegate creation/binding
Provide the needed data from the nim model directly to the delegate. This way whenever a delegate needs to display the data it doesn't need to reach the backend.

perf(chatScroll): Fix comments on Avoid calling the backend on delegate creation/binding

perf(chatScroll): Avoid calling the backend on delegate creation/binding  - add TODO comment on senderColorHash default

perf(chatScroll): merge quotedMessageAuthor details

perf(chatScroll): Fix nim tests

perf(chatScroll): Fix merge error - messages_model.nim
2023-01-19 19:24:18 +02:00
Pascal Precht bf7148efd6 fix: make avatar info in replies of imported messages work again
Because we've switched to `QuotedMessage` as an attached payload to
messages to make message replies data more reliable, we lost some of
the author information in imported messages, that was available prior
to that move.

This commit introduces `quotedMessageAuthorDisplayName` and
`quotedMessageAuthorAvatar` to our model so it can be set in case
we can't retrieve contact details for a given message (which is always
the case for imported messages)
2023-01-17 12:48:56 +01:00
Patryk Osmaczko a21bebcacc feat(chat): implement bulk insertion algorithm
motivated by: #9068
iterates: #3067
2023-01-16 13:08:43 +01:00
Patryk Osmaczko ac56bbdfdd fix(tests/nim): fix nim tests compilation 2023-01-13 11:52:47 +01:00
Jonathan Rainville 1216bdcc83 fix(nim-test): fix missing property in nim test message init 2023-01-12 16:55:07 -05:00
Jonathan Rainville 91c2e6d257 feat: use QuotedMessage object for replies to better show the replies
Fixes #7754
ok
2023-01-12 15:18:03 -05:00
Patryk Osmaczko bbc7da7c7d refactor: remove misleading APIs from message_model 2023-01-11 09:27:20 +01:00
Patryk Osmaczko fe4e14ff5b fix(chat/messages): set clock value for new messages marker
New messages marker had a clock value of "0" before. Since all
messages are inserted based on the clock value, new messages marker
would cause other "0"-valued clock items to be inserted after it,
effectively making chat header being displayed in the middle of the
chat.

Setting new messages marker clock value to the clock of the message it
points to solves the issue.

fixes: #8955
2023-01-11 09:27:20 +01:00
Patryk Osmaczko fa6f0dd2b7 fix(tests/nim): fix nim tests compilation 2023-01-11 09:27:20 +01:00
Patryk Osmaczko 7ede3389ff fix(chat): ensure messages ordering on model append/prepend
fixes: #8466
2022-12-21 10:32:46 +01:00