-
-
Notifications
You must be signed in to change notification settings - Fork 149
Sharing fixes #2974
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
base: main
Are you sure you want to change the base?
Sharing fixes #2974
Conversation
Signed-off-by: tobiasKaminsky <[email protected]>
c2673c5 to
2a5a5d5
Compare
|
APK file: https://www.kaminsky.me/nc-dev/android-artifacts/2974.apk |
| fun getShareFromNote( | ||
| @Query("path") path: String, | ||
| @Query("shared_with_me") sharedWithMe: Boolean = true | ||
| @Query("shared_with_me") sharedWithMe: Boolean = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The web calls
format=json
path=%2FNotes%2FSamples%2FFormatting.md
shared_with_me=true
So I am not sure if this is correct to be changed
|
|
||
| if (share.getSharedWithDisplayName() != null) { | ||
| AvatarLoader.INSTANCE.load(context, binding.icon, account, share.getSharedWithDisplayName()); | ||
| AvatarLoader.INSTANCE.load(context, binding.icon, account, share.getShareWith()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Than the if-clause needs to be updated as well
| note.title + | ||
| notesSuffix | ||
| } | ||
| return StringConstants.PATH + notesPath + StringConstants.PATH + note.category + StringConstants.PATH + note.title + notesSuffix |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will fail for notes not in a category I guess because it woudl add a StringConstants.PATH + StringConstants.PATH no?

No description provided.