-
Notifications
You must be signed in to change notification settings - Fork 886
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
XEP-0084: User Avatars #332
base: master
Are you sure you want to change the base?
Conversation
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.
There are some things that I do not fully understand about the code so far.
smack-extensions/src/main/java/org/jivesoftware/smackx/avatar/UserAvatarManager.java
Show resolved
Hide resolved
smack-extensions/src/main/java/org/jivesoftware/smackx/avatar/UserAvatarManager.java
Outdated
Show resolved
Hide resolved
smack-extensions/src/main/java/org/jivesoftware/smackx/avatar/UserAvatarManager.java
Outdated
Show resolved
Hide resolved
smack-extensions/src/main/java/org/jivesoftware/smackx/avatar/UserAvatarManager.java
Outdated
Show resolved
Hide resolved
smack-extensions/src/main/java/org/jivesoftware/smackx/avatar/UserAvatarManager.java
Outdated
Show resolved
Hide resolved
smack-extensions/src/main/java/org/jivesoftware/smackx/avatar/UserAvatarManager.java
Outdated
Show resolved
Hide resolved
smack-extensions/src/main/java/org/jivesoftware/smackx/avatar/MetadataInfo.java
Outdated
Show resolved
Hide resolved
smack-extensions/src/main/java/org/jivesoftware/smackx/avatar/MetadataInfo.java
Outdated
Show resolved
Hide resolved
smack-extensions/src/main/java/org/jivesoftware/smackx/avatar/MetadataInfo.java
Outdated
Show resolved
Hide resolved
smack-extensions/src/main/java/org/jivesoftware/smackx/avatar/MetadataInfo.java
Outdated
Show resolved
Hide resolved
smack-extensions/src/main/java/org/jivesoftware/smackx/avatar/element/MetadataExtension.java
Outdated
Show resolved
Hide resolved
smack-extensions/src/main/java/org/jivesoftware/smackx/avatar/element/MetadataExtension.java
Outdated
Show resolved
Hide resolved
smack-extensions/src/main/java/org/jivesoftware/smackx/avatar/element/DataExtension.java
Outdated
Show resolved
Hide resolved
smack-extensions/src/main/java/org/jivesoftware/smackx/avatar/provider/MetadataProvider.java
Outdated
Show resolved
Hide resolved
smack-extensions/src/main/java/org/jivesoftware/smackx/avatar/provider/MetadataProvider.java
Outdated
Show resolved
Hide resolved
f51edff
to
3c31f0c
Compare
9f2a5c8
to
e5e5780
Compare
Any updates? |
I haven't had time to further work on this yet. You are truly welcome to contribute though if you have the resources ;) |
e5e5780
to
cef58fd
Compare
f3feb02
to
571a11e
Compare
571a11e
to
992a3e9
Compare
fd27fad
to
aa09316
Compare
Co-authored-by: Paul Schaub <[email protected]>
b954bd5
to
0f5297c
Compare
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.
Let us try to get this over the finish line. I think this mostly needs work regarding the AvatarStore
interface.
Also please squash and rebase on the current master. Feel free to add a Co-authored-by
git pseudo header.
availabilityMap.put(new Tuple<>(jid, itemId), Boolean.TRUE); | ||
} | ||
|
||
private static class Tuple<A, B> { |
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 class should be deleted and o.j.smack.util.Pair
should be used instead.
* whether the client already has a local copy of a published avatar or if the user needs to be informed about the | ||
* update in order to download the image. | ||
*/ | ||
public interface AvatarMetadataStore { |
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.
I am confused by this "store", which does not actually seem to store avatars, just their availability.
Why not make it a real store-interface, e.g.
interface AvatarMetadataStore {
Avatar getAvatar(EntityBareJid jid, String itemId);
putAvatar(EntityBareJid jid, String itemId, Avatar avatar);
where Avatar is a meta class that encapsulates the MIME type and the avatar bytes.
@vanitasvitae: Have you progressed on it? |
Rebased #107 on current master.