Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConversationService returns unread conversation even if all messages of it have the flag "read" = true #46

Open
sasfeld opened this issue Jul 22, 2015 · 0 comments
Labels

Comments

@sasfeld
Copy link
Contributor

sasfeld commented Jul 22, 2015

Reproduce

  1. See webapp log: http://pastebin.com/865cZBrJ
  2. Look for the first request: https://api.neeedo.com/conversations/d8f087df-8db3-4a11-b4c0-13d6aa59d0ea?read=false -> here we request unread conversations
  3. Now, the user toggles the conversation and expects to get unread messages, so we sent the following request: 'https://api.neeedo.com/messages/b0bce0f5-b89f-4f09-a5d0-0ffd972b15b2/d8f087df-8db3-4a11-b4c0-13d6aa59d0ea
  4. The API returned the following JSON
{"messages":[{"id":"e3eab6aa-e703-4aaa-b99a-5bfd6861aa11","sender":{"id":"b0bce0f5-b89f-4f09-a5d0-0ffd972b15b2","name":"typ"},"recipient":{"id":"d8f087df-8db3-4a11-b4c0-13d6aa59d0ea","name":"sascha"},"body":"ejejfjfj","timestamp":1437479282621,"read":true},{"id":"d6393105-fd90-4a5b-bd05-5e732acc6cb0","sender":{"id":"d8f087df-8db3-4a11-b4c0-13d6aa59d0ea","name":"sascha"},"recipient":{"id":"b0bce0f5-b89f-4f09-a5d0-0ffd972b15b2","name":"typ"},"body":"nice","timestamp":1437479224257,"read":true},{"id":"4b424c17-5ccd-41ed-b81d-dee92003828c","sender":{"id":"b0bce0f5-b89f-4f09-a5d0-0ffd972b15b2","name":"typ"},"recipient":{"id":"d8f087df-8db3-4a11-b4c0-13d6aa59d0ea","name":"sascha"},"body":"Hallo ","timestamp":1437479098861,"read":true},{"id":"eb397746-7d33-4c41-8d39-cdb93cf78d5b","sender":{"id":"b0bce0f5-b89f-4f09-a5d0-0ffd972b15b2","name":"typ"},"recipient":{"id":"d8f087df-8db3-4a11-b4c0-13d6aa59d0ea","name":"sascha"},"body":"Nein ","timestamp":1437479038656,"read":true},{"id":"c31fa8b3-f622-4ffc-b261-fc1e1be430b0","sender":{"id":"d8f087df-8db3-4a11-b4c0-13d6aa59d0ea","name":"sascha"},"recipient":{"id":"b0bce0f5-b89f-4f09-a5d0-0ffd972b15b2","name":"typ"},"body":"jajajajajajaja","timestamp":1436884742616,"read":true},{"id":"807d2d58-a41c-4031-823e-edf636fe6210","sender":{"id":"b0bce0f5-b89f-4f09-a5d0-0ffd972b15b2","name":"typ"},"recipient":{"id":"d8f087df-8db3-4a11-b4c0-13d6aa59d0ea","name":"sascha"},"body":"muss kurz testen ","timestamp":1436883298786,"read":true},{"id":"d25aead3-f6dd-40e7-b81b-eed8a7f84dd2","sender":{"id":"b0bce0f5-b89f-4f09-a5d0-0ffd972b15b2","name":"typ"},"recipient":{"id":"d8f087df-8db3-4a11-b4c0-13d6aa59d0ea","name":"sascha"},"body":"penis","timestamp":1436883090520,"read":true},{"id":"0a2d98f1-f684-4937-a8cc-fde1f5c59cf9","sender":{"id":"b0bce0f5-b89f-4f09-a5d0-0ffd972b15b2","name":"typ"},"recipient":{"id":"d8f087df-8db3-4a11-b4c0-13d6aa59d0ea","name":"sascha"},"body":"muss kurz was testen ","timestamp":1436883011908,"read":true},{"id":"916dd41c-f0d5-4cf0-9307-144c8726409c","sender":{"id":"b0bce0f5-b89f-4f09-a5d0-0ffd972b15b2","name":"typ"},"recipient":{"id":"d8f087df-8db3-4a11-b4c0-13d6aa59d0ea","name":"sascha"},"body":"jo das klingt fair �","timestamp":1436881121110,"read":true},{"id":"23c25468-e5dc-4bb4-952f-f2265e7dcfd0","sender":{"id":"d8f087df-8db3-4a11-b4c0-13d6aa59d0ea","name":"sascha"},"recipient":{"id":"b0bce0f5-b89f-4f09-a5d0-0ffd972b15b2","name":"typ"},"body":"Das Mitglied der Zygentoma-Familie befindet sich in meinem Stück angebissenen Apfel, kommen wir ins Geschäft?","timestamp":1436881070557,"read":true}]}

Problem

Look for "read" flags: it is true for each message.

Desired solution

So the conversation request with read=false shouldn't return this example conversation at all.

@sasfeld sasfeld added the bug label Jul 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant