stakwork / sphinx-relay

Node.js wrapper for communication between sphinx client and lightning node.
MIT License
247 stars 71 forks source link

Chat List order #464

Open tomastiminskas opened 1 year ago

tomastiminskas commented 1 year ago

When adding a new contact or joining a tribe, that contact/tribe should show at top of the chat list on apps, but on some cases it doesn't happen.

Chat list order: the chat list order is defined considering the following:

Initially this was enough to have the contacts and tribes showing at top of the list just after created/joined, but after some feature additions these issues come up

Issues:

One way to fix this would be updating the created_at value of a contact when creating it if the contact was already there as from_group=true. But that doesn't seem the right approach since we will be changing a value that could be needed in the future.

Solution:

tomastiminskas commented 1 year ago

@Evanfeenstra @kevkevinpal take a look at this issue whenever you can and let me know your thoughts please