-
Notifications
You must be signed in to change notification settings - Fork 5
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
Provide a public interface (backend) to set nicknames #38
Comments
I believe the best approach for this is: |
@Dan-Yoo @shelbaz interesting fact, Signal stores all your contacts in table called "recipient_preferences". It gets accessed through RecipientDatabase class, there is method that returns all the info related to a recipient to "getIndividualRecipientDetails" in RecipientProvider class in a form of RecipientDetails object |
1- Added RecipientDatabase 'setNickname' public interface 2- Added processNicknameSqlRequest to handle the database calls, this also can be used by removeNickname method in the future 3- Changed the default type of nickname attri in DatabaseFactory from NULL to 'null' - String
1- Create class NicknameHandler responsible for setting and unsetting the nickname 2- Sample use: NicknameHandler handler = new NicknameHandler(getContext()); handler.setupDatabaseHandler().setNickname(recipient,"test"); handler.removeNickname(recipient);
1- also fixed a typo regarding old tests in pin messages 2- moved up the initialization of the mocked object to the parent 'NicknameMocks'
…reverted RecipientDatabase Format
1- Removed TODO parts related for removeNickname functionality 2- Fixed a functional inconsistency in PinnedMessagesMocks 3- General code formatting
1- Added NicknameHandler 2- Setting and Changing nicknames interfaces 3- Nickname db attributes 4- Setting and changing unittests
Actual time : 5h |
User Story #34
Estimated Time: 4h
The text was updated successfully, but these errors were encountered: