@@ -45,6 +45,13 @@ declare module 'libsession_util_nodejs' {
4545 setReuploadProfilePic : ( pic : ProfilePicture ) => void ;
4646
4747 getProfileUpdatedSeconds : ( ) => number ;
48+ /**
49+ * Returns the profile picture url and key merged as a url fragment, or null if not set.
50+ * So this could return something like
51+ * `http://filev2.getsession.org/file/1234#ba7e23ef3d4dc54b706d79c149ec571a4d64043e13771236afc030f6c8118575`
52+ *
53+ */
54+ getProfilePicWithKeyHex : ( ) => string | undefined ;
4855
4956 setEnableBlindedMsgRequest : ( msgRequest : boolean ) => void ;
5057 getEnableBlindedMsgRequest : ( ) => boolean | undefined ;
@@ -72,6 +79,7 @@ declare module 'libsession_util_nodejs' {
7279 public setReuploadProfilePic : UserConfigWrapper [ 'setReuploadProfilePic' ] ;
7380 public setUserConfig : UserConfigWrapper [ 'setUserConfig' ] ;
7481 public getProfileUpdatedSeconds : UserConfigWrapper [ 'getProfileUpdatedSeconds' ] ;
82+ public getProfilePicWithKeyHex : UserConfigWrapper [ 'getProfilePicWithKeyHex' ] ;
7583 public getEnableBlindedMsgRequest : UserConfigWrapper [ 'getEnableBlindedMsgRequest' ] ;
7684 public setEnableBlindedMsgRequest : UserConfigWrapper [ 'setEnableBlindedMsgRequest' ] ;
7785 public getNoteToSelfExpiry : UserConfigWrapper [ 'getNoteToSelfExpiry' ] ;
@@ -96,6 +104,7 @@ declare module 'libsession_util_nodejs' {
96104 | MakeActionCall < UserConfigWrapper , 'setReuploadProfilePic' >
97105 | MakeActionCall < UserConfigWrapper , 'setUserConfig' >
98106 | MakeActionCall < UserConfigWrapper , 'getProfileUpdatedSeconds' >
107+ | MakeActionCall < UserConfigWrapper , 'getProfilePicWithKeyHex' >
99108 | MakeActionCall < UserConfigWrapper , 'getEnableBlindedMsgRequest' >
100109 | MakeActionCall < UserConfigWrapper , 'setEnableBlindedMsgRequest' >
101110 | MakeActionCall < UserConfigWrapper , 'getNoteToSelfExpiry' >
0 commit comments