1 | function translateHeader (header, recipients) {
|
2 | if (recipients) {
|
3 | if (header['from-salty-id'] && recipients[header['from-salty-id']]) {
|
4 | header['from-salty-id'] = recipients[header['from-salty-id']].toString(true)
|
5 | }
|
6 | if (header['to-salty-id'] && recipients[header['to-salty-id']]) {
|
7 | header['to-salty-id'] = recipients[header['to-salty-id']].toString(true)
|
8 | }
|
9 | }
|
10 | return header
|
11 | }
|
12 | module.exports = translateHeader |
\ | No newline at end of file |