Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-03-21Use the API response to update reactions detailsmarco
Signed-off-by: marco <marcoambrosini@pm.me>
2022-03-21Filter out reactions from the messagesList gettermarco
Signed-off-by: marco <marcoambrosini@pm.me>
2022-03-21tempmarco
Signed-off-by: marco <marcoambrosini@pm.me>
2022-03-21Add reaction store and move some logic theremarco
Signed-off-by: marco <marcoambrosini@pm.me>
2022-03-21Create a dedicated getter to know whether a message has detailed reaction or notmarco
Signed-off-by: marco <marcoambrosini@pm.me>
2022-03-21Add store methodsmarco
Signed-off-by: marco <marcoambrosini@pm.me>
2022-03-21Create simplified reactions getter for messagesmarco
Signed-off-by: marco <marcoambrosini@pm.me>
2022-03-21Get reaction details on hovermarco
Signed-off-by: marco <marcoambrosini@pm.me>
2022-03-21add services for removing reactions from messagesmarco
Signed-off-by: marco <marcoambrosini@pm.me>
2022-03-21Add ability to add reactions to messagesmarco
Signed-off-by: marco <marcoambrosini@pm.me>
2021-11-16Overwrite hasCall based on chat messagesJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-10-25Merge pull request #6394 from nextcloud/fix/noid/referenceid-lengthJoas Schilling
accept SHA256 hash sums for reference id as documented
2021-10-25accept SHA256 hash sums for reference id as documentedArthur Schiwon
- also use them for chat - cf. https://github.com/nextcloud/spreed/blob/40caf331092c9dd5d23f1365d7fb4f0768d06b50/docs/chat.md Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-10-22Fix forwarding object sharesJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-08-30Remove nested docsJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-08-30Finish the storesJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-08-30Replace "bool" with type "boolean"Joas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-08-30Replace "int" type with "number"Joas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-08-23Fix license tagJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-08-23AutofixesJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-07-28Fix forwarding mentionsMarco Ambrosini
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
2021-07-23Move try/catch block outside of the storeMarco Ambrosini
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
2021-07-23Fix clonedeep importMarco Ambrosini
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
2021-07-21Set proper message tokenMarco Ambrosini
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
2021-07-19Move forwarding logic and template into a separate componentMarco Ambrosini
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
2021-07-19Forward messageMarco Ambrosini
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
2021-07-08Fix minor thingsJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-07-07Fix read marker and counter issues with pending pagesVincent Petry
Whenever there are several pages of unread messages, the "lookForNewMessages()" call will not return all the results at once. In case there are results left to load, the read marker is not reset by the false when "isSticky" (aka scrolled to bottom) happens. When loading new messages, we now only increase the conversation counter when the latter was out of sync with the current messages list. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-06-18Fix concurrency when cancelling lookForNewMessagesVincent Petry
When switching between regular mode and call mode, the two MessagesList view instances are concurrently disturbing each other's lookForNewMessages call. To fix this, we now introduce a requestId for those requests to which we pass in the chatIdentifier, extended by a generated view id. This brings back the old behavior for now. In the future we should look into keeping the polling request and sharing it between the two Vues, which requires some refactoring of the polling logic and timeouts. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-06-17Adjust messagesStore for unread messages updateVincent Petry
Minor fixes to messagesStore unread messages counter logic. Added tests for all cases. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-06-17Update unread mentions earlierVincent Petry
When fetching new messages in the current conversation, also scan them for mentions to update the conversation store's unreadMention flag if necessary. This makes a mention notification or the counter bubble highlight color update more quickly without having to wait for the conversation list reload. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-06-17Update unread messages count earlierVincent Petry
As soon as we receive new messages from the "lookForNewMessages" action, they are counted and added to the number of known unread messages. This makes the store update and counter in the left sidebar update more quickly. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-06-17Lint fixMarco Ambrosini
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
2021-06-11Add metadata to voice messagesMarco Ambrosini
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
2021-06-02Map multiple cancel functions to temporary messageVincent Petry
When sending multiple messages in a row, and all are pending or time out, they each need a specific cancel function to match their specific request. Fixes issue where one message timing out would cancel the other messages as well. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-05-05Added JS tests for messages storeVincent Petry
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-05-03Move postNewMessage to a store actionVincent Petry
Removes the store usage in messagesService Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-05-03Move fetch messages logic to the storeVincent Petry
Move fetchMessages and lookForNewMessages to store actions, including logic for cancelling them. Removed store usage for these functions in messagesService and moved it to the store actions. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-04-29Simplify hash args Vincent Petry
Signed-off-by: Vincent Petry <vincent@nextcloud.com> Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
2021-04-29More createTemporaryMessage to a store actionVincent Petry
Since createTemporaryMessage heavily depends on a store, moved it into a messagesStore action to decouple it from the global store module. Note: even though it's synchronous, the dispatch() function returns a promise so we need to treat it as if it was async. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-19Only refetch in case of mark as unreadVincent Petry
Re-fetch conversation only when marking as unread, as it's the only scenario where unreadMessages and other values cannot be computed cheaply on the client side. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-18Fix guest access console error messagesVincent Petry
Fix error related to unavailable upload menu. Don't send request for updating read marker on server in guest mode. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-18Re-fetch conversation after marking as readVincent Petry
Re-fetching makes sure that harder to compute values are re-fetched from the server like unreadMessages, unreadMention, etc. This introduces a new store action "fetchConversation". Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-08Update read marker UI when posting + tweaksVincent Petry
When posting new messages, the read marker UI will also be updated. Fixed read marker update when scrolled to bottom. Fixed warnings related to temporary message id being a string. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-08Decouple visible unread marker from its actual positionVincent Petry
To avoid jumping around when updating the lastReadMessage property, its last value is now cached in visualLastReadMessageId in the messagesStore. The marker always keeps its position until the user focusses away then back. In the latter case the marker position is refreshed based on the last backend/store state. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-08Tweak read marker behaviorVincent Petry
When no scrolling is possible, add delay before clearing. Small related code cleanup. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-08Don't mark conversation as read any more on clickVincent Petry
When joining a conversation, don't mark it as read any more. The only moment will be when scrolling down to the bottom of a conversation and when clearing the read marker, in which case we immediately update the store. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-03-08Update last read message marker on scrollVincent Petry
Moved marker behavior from server to client by passing setReadMarker=0 to queries. Added scroll handler that detects whether the read marker was seen and scrolled past, if yes it will set the read marker to the first message visible at the top. Keep the marker when the document is not focussed. When opening a conversation, scrolls to the read marker. The lastMessage attribute of a conversation is now updated earlier to make sure the read marker can update properly when there are new messages appended. Instead of waiting for the next refresh cycle, this fix immediately updates lastMessage and lastReadMessage after posting a message. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-02-15Correctly remove temporary message from store when postingJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-02-02Fix JS docsJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>