You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: android/tinySSB/app/src/main/assets/web/tremola.js
+83-2Lines changed: 83 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1019,6 +1019,89 @@ function b2f_local_peer(type, identifier, displayname, status) {
1019
1019
refresh_connection_entry(identifier)
1020
1020
}
1021
1021
1022
+
/**
1023
+
* This function is called, when the backend received a new log entry and successfully completed the corresponding sidechain.
1024
+
* The backend assures, that the log entries are sent to the frontend in the exact same sequential order as in the append-only log.
1025
+
*
1026
+
* @param {Object} e Object containing all information of the log_entry.
1027
+
* @param {Object} e.hdr Contains basic information about the log entry.
1028
+
* @param {number} e.hdr.tst Timestamp at which the message was created. (Number of milliseconds elapsed since midnight at the beginning of January 1970 00:00 UTC)
1029
+
* @param {string} e.hdr.ref The message ID of this log entry.
1030
+
* @param {string} e.hdr.fid The public key of the author encoded in base64.
1031
+
* @param {[]} e.public The payload of the message. The first entry is a String that represents the application to which the message belongs. All additional entries are application-specific parameters.
* This function is invoked whenever the backend receives a new log entry, regardless of whether the associated sidechain is fully loaded or not.
1062
+
*
1063
+
* @param {Object} e Object containing all information of the log_entry.
1064
+
* @param {Object} e.hdr Contains basic information about the log entry.
1065
+
* @param {number} e.hdr.tst Timestamp at which the message was created. (Number of milliseconds elapsed since midnight at the beginning of January 1970 00:00 UTC)
1066
+
* @param {string} e.hdr.ref The message ID of this log entry.
1067
+
* @param {string} e.hdr.fid The public key of the author encoded in base64.
1068
+
* @param {[]} e.public The payload of the logentry, without the content of the sidechain
* This function is called, when the backend received a new log entry and successfully completed the corresponding sidechain.
1095
+
* This callback does not ensure any specific order; the log entries are forwarded in the order they are received.
1096
+
*
1097
+
* @param {Object} e Object containing all information of the log_entry.
1098
+
* @param {Object} e.hdr Contains basic information about the log entry.
1099
+
* @param {number} e.hdr.tst Timestamp at which the message was created. (Number of milliseconds elapsed since midnight at the beginning of January 1970 00:00 UTC)
1100
+
* @param {string} e.hdr.ref The message ID of this log entry.
1101
+
* @param {string} e.hdr.fid The public key of the author encoded in base64.
1102
+
* @param {[]} e.public The payload of the message. The first entry is a String that represents the application to which the message belongs. All additional entries are application-specific parameters.
1103
+
*
1104
+
*/
1022
1105
functionb2f_new_event(e){// incoming SSB log event: we get map with three entries
1023
1106
// console.log('hdr', JSON.stringify(e.header))
1024
1107
console.log('pub',JSON.stringify(e.public))
@@ -1081,8 +1164,6 @@ function b2f_new_event(e) { // incoming SSB log event: we get map with three ent
1081
1164
// if (curr_scenario == "chats") // the updated conversation could bubble up
0 commit comments