session-ios/SessionMessagingKit/LibSessionUtil/libsession-util.xcframework/session/config/profile_pic.h
Morgan Pretty ff36b3eeab Resolved a number of TODOs and a couple of crashes
Updated the logic to always fetch all config messages (and not de-dupe them)
Updated the onboarding to fallback to fetch the legacy config if the there is no updated user config
Added sorting to config message processing to reduce the turn-around time for certain edge-cases to resolve
Removed some redundant code
Fixed a database re-entrancy crash
Fixed a crash when merging config messages
Fixed an issue which could occur by registering too many 'afterTransaction' closures
2023-02-21 17:10:02 +11:00

23 lines
649 B
C

#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#include <stddef.h>
// Maximum length of the profile pic URL (not including the null terminator)
extern const size_t PROFILE_PIC_MAX_URL_LENGTH;
typedef struct user_profile_pic {
// Null-terminated C string containing the uploaded URL of the pic. Will be length 0 if there
// is no profile pic.
char url[224];
// The profile pic decryption key, in bytes. This is a byte buffer of length 32, *not* a
// null-terminated C string. This is only valid when there is a url (i.e. url has strlen > 0).
unsigned char key[32];
} user_profile_pic;
#ifdef __cplusplus
}
#endif